Beispiel #1
0
 public Shape(Point2D Centroid)
 {
     this.Centroid = Centroid;
 }
Beispiel #2
0
 public Circle(Point2D Centroid, double Radius)
     : base(Centroid)
 {
     this.Radius = Radius;
 }
Beispiel #3
0
 //knows its a constructor so it knows where to put the information
 public Rectangle(Point2D Centroid, double Height, double Width)
     : base(Centroid)
 {
     this.Height = Height;
     this.Width = Width;
 }