create an application named ShapesDemo that creates several objects that descent from abstract class called GeometricFigure. Each GeometricFigure include a height, width and an area. provide get and set accessors dor each field except area; the area is computed and is read-only. include and abstract method called ComputeArea() that computes the area of the GeometricFigure.
- A Rectangle is geometricFigure whose area is determined by multiplying width by height.
- a Square is a Rectangle in which the width and height are the same. provide a constructor that accepts both height and width, forcing them to equal if they are not. provide a second constructor that accepts just one dimension and uses it for both height and width. The square class uses the rectangle's ComputeArea() method.
- A Triangle is a Geometric
- figure whose area is determined by multiplying the width by half the height.
holavi DekannPosted Nov 4, 2014, 6:41 PM
holavi DekannPosted Nov 4, 2014, 6:38 PM
Riddhi ValechaPosted Nov 4, 2014, 4:15 AM
Is this windows application / web application ??
And do you expect a drawing sort of this ??
Shweta LodhaPosted Nov 3, 2014, 8:17 PM
Instead of posting the entire requirement here, I would suggest you to please post specific error/question. You can start at your own and in case if you stuck at any point then post it here. Appreciate your co-operation.