Question: Which of the following correctly initializes a Shape object with a custom constructor? a) Shape circle = new Circle(); b) Shape circle = new Shape();
Which of the following correctly initializes a "Shape" object with a custom constructor?
a) Shape circle = new Circle();
b) Shape circle = new Shape();
c) Shape = new Shape("circle");
d) Shape circle = new Shape("circle");
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
