Question: Create a class called TestShape with a main ( ) method. In the main method, do the following: a . Create an instance of class

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 3 variables with a colour, a size and a shape.
b.
Create an instance of the Shape class using the overloaded constructor, passing it 3 parameters for colour, size and type.

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