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 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
Get step-by-step solutions from verified subject matter experts
