Description
Classes, Objects, Inheritance, Properties, Functions, ComboBox Control, Label Control
Develop 1 base class (clsShape) and 3 sub-classes (clsRectangle, clsTriangle, clsCircle) to be used for calculating center of gravity and area of the 3 common shapes in a developed Windows Forms App.
- Develop a Base (parent) Class named clsShape containing 3 Properties (Base, Height, Diameter)
- Develop an additional 3 derived sub-classes named clsRectangle, clsTriangle, clsCircle which Inherits the properties of the Base Class clsShape. For each of the derived classes, create 3 Functions to calculate the centroid (X), centroid(Y) and the Area
- In a developed Windows Form, create an instance (object) for each derived class named objRect, objTri, objCircle to be used for calculating both the centroid and the area.
Madison Hayes –
It’s amazing how Gotit Pro Experts provided the instant help I needed to my questions and doubts. Now I feel the satisfaction of receiving a trustworthy guidance. Strongly recommend it!