I am new to programming, and have tried to get this to work,however I just keep running in to errors that wont let it compile.Please help….
In C#, create an application named ShapesDemo that createsseveral objects that descend from an
abstract class called GeometricFigure. Each GeometricFigureincludes a height, a width, and an area.
Provide get and set accessors for each field except area; the areais computed and is read-only Include
an abstract method called ComputeArea() that computes the area ofthe GeometricFigure. Create three
• A Rectangle is a GeometricFigure whose area is determined bymultiplying width by height.
• A Square is a Rectangle in which the width and height are thesame. Provide a constructor that
accepts both height and width, forcing them to be equal if they arenot. Provide a second
constructor that accepts just one dimension and uses it for bothheight and width. The Square
class uses the Rectangle’s ComptueArea() method.
• A Triangle is a GeometricFigure whose area is determined bymultiplying the width by half the
In the ShapesDemo class, after each object is created, pass it to amethod that accepts a
GeometricFigure argument in which the figure’s data is displayed.Change some dimensions of some of
the figures and pass each to the display method again.
Answer to I am new to programming, and have tried to get this to work, however I just keep running in to errors that wont let it c…