Beispiel #1
0
 //copy constructor
 public Moonlet(Moonlet inBound) : base(inBound.parentID, inBound.selfID)
 {
     this.planetRadius  = inBound.planetRadius;
     this.moonName      = inBound.moonName;
     this.orbitalRadius = inBound.orbitalRadius;
     this.orbitalPeriod = inBound.orbitalPeriod;
 }
 //copy constructor
 public Moonlet(Moonlet inBound)
     : base(inBound.parentID, inBound.selfID)
 {
     this.planetRadius = inBound.planetRadius;
     this.moonName = inBound.moonName;
     this.orbitalRadius = inBound.orbitalRadius;
     this.orbitalPeriod = inBound.orbitalPeriod;
 }