示例#1
0
 public circle(Point2D centroid, double radius)
     : base(centroid)
 {
     this.radius = radius;
 }
示例#2
0
 public circle(Point2D centroid)
     : base(centroid)
 {
 }
示例#3
0
 public rectangle(Point2D centroid, double length, double width)
     : base(centroid)
 {
     this.centroid = centroid;
     this.length = length;
     this.width = width;
 }
示例#4
0
 //property
 //I'll be able to get it afterwards :P
 //f*****g spoof...
 //
 public Shapes(Point2D centroid)
 {
     this.centroid = centroid;
     Console.WriteLine("Shape constructor is called");
 }
示例#5
0
 public rectangle(Point2D centroid)
     : base(centroid)
 {
 }