An abstract class Dwelling has two subclasses, SingleFamily and MultiFamily. None of the constructors for these classes

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 is legal?
a. Dwelling myHome = new Dwelling();
b. SingleFamily myHome = new SingleFamily();
c. MultiFamily myHome = new Dwelling();
d. Two of the above

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question

Java Programming

ISBN: 978-1337397070

9th edition

Authors: Joyce Farrell

Question Posted: