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.

CPT 341 VB.NET Project 3 | OOP Centroids Area

CPT 341 VB.NET Spring 2020 Project 3 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.


 
  Solved by verified study co-pilot   All Study Co-Pilots are evaluated by Gotit Pro as an expert in their subject area.
Student review: (13 ratings) 13 out of 13 people found this solution helpful.