153k views
5 votes
Public class Dog

{
/* code not shown */
}
public class Dachshund extends Dog
{
/* code not shown */
}
Assuming that each class has a default constructor, which of the following are valid
declarations?
I. Dog sadie = new Dachshund();
II. Dachshund aldo = new Dachshund();
III. Dachshund doug = new Dog();

1 Answer

6 votes

Answer:

dog=1/3=1/4

Step-by-step explanation:

User Roman Kotov
by
4.0k points