Question: Design a class Shape having attribute shape _ name and num _ sides. Inherit the class in subclass triangle and rectangle. Design a function in

Design a class Shape having attribute shape_name and num_sides. Inherit the class
in subclass triangle and rectangle. Design a function in_sides() in both subclass
which will take number of input as value passed for sides. Display that the shape
is possible or not with the side provided.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!