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();