Suppose that Horse is a subclass of Animal, and neither class is abstract. Which of the following is an invalid declaration and initialization?
a) Horse h = new Horse();
b) Horse h = new Animal();
c) Animal a = new Animal();
d) Animal a = new Horse();
e) all of the above are valid
b) Horse h = new Animal();
Computer Science & Information Technology
You might also like to view...
Which symbol to the right of a column name in the SharePoint documents library indicates the direction of a sort?
A) Large arrow B) Funnel C) Small arrow D) Check mark
Computer Science & Information Technology
While running the New Virtual Machine Wizard, what are the four options you have for installing an operating system?
What will be an ideal response?
Computer Science & Information Technology