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 shapename and numsides. Inherit the class
in subclass triangle and rectangle. Design a function insides 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
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
