/// <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)); }
/// <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)); }