Question: A total of 5 class files will be created Shape - numberofsides: int=0 + getPerimeter(): double + getArea(): double printo A Circle Square - sidelength:

A total of 5 class files will be created
Shape - numberofsides: int=0 + getPerimeter(): double + getArea(): double printo A Circle Square - sidelength: double -radius: double Rectangle -shortsidelength: double - longsidelength: double + fitsinsquare(Square): boolean getPerimeter(): double + getArea(): double + fitsinrectangle(Rectangle): boolean + getPerimeter: double + getArea(): double + getPerimeter(): double + getArea(): double encode the classes, the diagram of which is given above, in C#. - Write the members of the classes (properties and methods) in a way that is appropriate and functional to their meaning. - Control access to class properties using C# property. - Each class is in a different file (.cs extension) must be present. - the print() method must print the values of all properties of the corresponding class and the values returned by methods that do not take parameters to the screen (console). - Create an instance of each different class by typing a driver/test class and call the print() methods in a multiform (polymorphic) format
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
