Shape Class

Understand the implementation of a Shape class.

We'll cover the following

Problem

Write a program to create a class called Shape that can calculate the perimeter/circumference and area of a regular shape. The class should also have a provision to accept the data relevant to the shape.

Get hands-on with 1400+ tech skills courses.