Question: Considering the following class: public class Shape private boolean filled: private int color: public shape(int c, boolean p) { color - ei tilled - b:
Considering the following class: public class Shape private boolean filled: private int color: public shape(int c, boolean p) { color - ei tilled - b: > 1/ assume setters, getters and tostring() are provided Which of the following statements in a test class will be valid? O A Shape triangle - new Triangle( false. 7); B. Shape triangle - new Shape: O C. Shape square - new Shape 175 false D. None of the above
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
