Question: (iv) create a class named 'shape' with a method to print this is this is shape then create two other classes named 'rectangle', 'circle' inheriting

(iv) create a class named \'shape\' with a method to print this is this is shape then create two other classes named \'rectangle\', \'circle\' inheriting the shape class, both having a method to print this is a rectangular shape and this is circular shape respectively create a subclass \'square\' of \'rectangle\' having a method to print square is a rectangle now call the method of \'shape\' and \'rectangle\' class by the object of \'square\' class

Step by Step Solution

3.42 Rating (149 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Program using C i... View full answer

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!