Question: 5 . Create a class called TestShape with a main ( ) method. In the main method, do the following: a . Create an instance
Create a class called TestShape with a main method. In the main method, do the following: a Create an instance of class Shape using the default constructor, and populate the variables with a colour, a size and a shape. b Create an instance of the Shape class using the overloaded constructor, passing it parameters for colour, size and type.
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
