Пример #1
0
 public Ship()
 {
     this.ShipName      = "";
     this.ShipsNumber   = SHIPSCount;
     this.SailorsNumber = 0;
     base.SHIPSCount++;
     this.captain = new Captain();
 }
Пример #2
0
 public Ship(string ShipName, int SailorsNumber, Captain captain)
 {
     this.ShipName      = ShipName;
     this.ShipsNumber   = SHIPSCount;
     this.SailorsNumber = SailorsNumber;
     this.captain       = captain;
     base.SHIPSCount++;
 }
Пример #3
0
 public Boat()
 {
     this.BoatName      = "";
     this.BoatNumber    = 0;
     this.SailorsNumber = 0;
     this.captain       = new Captain();
     base.BOATSCount++;
 }
Пример #4
0
 public Boat(string BoatName, int SailorsNumber)
 {
     this.BoatName      = BoatName;
     this.BoatNumber    = BOATSCount;
     this.SailorsNumber = SailorsNumber;
     this.captain       = new Captain();
     base.BOATSCount++;
 }
Пример #5
0
 public Sailboat(string SailboatName, int SailorsNumber, Captain captain)
 {
     this.SailboatName   = SailboatName;
     this.SailboatNumber = SAILBOATSCount;
     this.SailorsNumber  = SailorsNumber;
     this.captain        = captain;
     base.SAILBOATSCount++;
 }
Пример #6
0
 public Corvette(string CorvetteName, int SailorsNumber, Captain captain)
 {
     this.CorvetteName   = CorvetteName;
     this.CorvetteNumber = CORVETTESCount;
     this.SailorsNumber  = SailorsNumber;
     this.captain        = captain;
     base.CORVETTESCount++;
 }
Пример #7
0
 public Streamer(Captain captain)
 {
     this.StreamerName   = "";
     this.StreamerNumber = 0;
     this.SailorsNumber  = 0;
     base.STREAMERSCount++;
     this.SeatsNumber = 0;
     this.captain     = captain;
 }
Пример #8
0
 public Streamer()
 {
     this.StreamerName   = "";
     this.StreamerNumber = 0;
     this.SailorsNumber  = 0;
     base.STREAMERSCount++;
     this.SeatsNumber = 0;
     this.captain     = new Captain();
 }
Пример #9
0
 public Sailboat()
 {
     this.SailboatName   = "";
     this.SailboatNumber = 0;
     this.SailorsNumber  = 0;
     this.displacement   = 0;
     this.captain        = new Captain();
     base.SAILBOATSCount++;
 }
Пример #10
0
 public Streamer(string StreamerName, int SailorsNumber, int SeatsNumber, Captain captain)
 {
     this.StreamerName   = StreamerName;
     this.StreamerNumber = STREAMERSCount;
     this.SailorsNumber  = SailorsNumber;
     this.SeatsNumber    = SeatsNumber;
     totalSeatsNumber   += SeatsNumber;
     this.captain        = captain;
     base.STREAMERSCount++;
 }
Пример #11
0
 public Sailboat(string SailboatName, int SailorsNumber, int displacement)
 {
     this.SailboatName   = SailboatName;
     this.SailboatNumber = SAILBOATSCount;
     this.SailorsNumber  = SailorsNumber;
     this.displacement   = displacement;
     totalDisplacement  += this.displacement;
     this.captain        = new Captain();
     base.SAILBOATSCount++;
 }