Esempio n. 1
0
 /// <summary>
 /// Constructor with input parameters.
 /// </summary>
 public Rectangle(double _widht, double _height)
 {
     //Assigning a delegate to the formula and its input parameters.
     //Since this is just an example, no checks have been added.
     Figure = new CustomFigure(new Formula(CalculateFormule, _widht, _height));
 }
Esempio n. 2
0
 /// <summary>
 /// Constructor with input parameters.
 /// </summary>
 public Cerlcle(double round)
 {
     //Assigning a delegate to the formula and its input parameters.
     //Since this is just an example, no checks have been added.
     Figure = new CustomFigure(new Formula(CalculateFormule, round));
 }