Question: An abstract class Dwelling has two subclasses, SingleFamily and MultiFamily. None of the constructors for these classes requires any arguments. Which of the following statements
An abstract class Dwelling has two subclasses, SingleFamily and MultiFamily. None of the constructors for these classes requires any arguments. Which of the following statements is legal?
a. Dwelling myHome = new Dwelling();
b. SingleFamily myHome = new SingleFamily();
c. MultiFamily myHome = new Dwelling();
d. Two of the above
Step by Step Solution
3.48 Rating (181 Votes )
There are 3 Steps involved in it
b Singl... View full answer
Get step-by-step solutions from verified subject matter experts
