Esempio n. 1
0
        public Marines()
        {
            this.BranchName = "Marines";

            Navy navya = new Navy();

            this._TotalDefenseBudget   = navya.BranchBudget;
            this._DefenseBudgetPercent = .228M;
            this._BranchSMCountPercent = .13M;
            this._BranchBudget         = (double)_DefenseBudgetPercent * _TotalDefenseBudget;
            this._BranchSMCount        = _SMCount * _BranchSMCountPercent;
        }
Esempio n. 2
0
        static void Main(string[] args)
        {
            Army     army     = new Army();
            Navy     navy     = new Navy();
            AirForce airForce = new AirForce();
            Marines  marines  = new Marines();

            army.DisplayInfrastructure();
            army.DisplayUtilities();
            navy.DisplayInfrastructure();
            navy.DisplayUtilities();
            airForce.DisplayInfrastructure();
            airForce.DisplayUtilities();
            marines.DisplayInfrastructure();
            marines.DisplayUtilities();
        }