Question: java program te a class named 'Shape' with a method to print This is This is shane Tu create two other classes named 'Rectangle', 'Circle'

 java program te a class named 'Shape' with a method to

java program

te a class named 'Shape' with a method to print "This is This is shane Tu create two other classes named 'Rectangle', 'Circle' inheriting the Shape class having a method to print "This is rectangular shape" and "This is circular shape" respectively. Create a subclass 'Square' of 'Rectangle' having a method to print "Sam is a rectangle". Now call the method of 'Shape' and 'Rectangle' class by the object of 'Square' class

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 Databases Questions!