Given:
1. interface Pet { }
2. class Dog implements Pet { }
3. class Beagle extends Dog { }
Which three are valid? (Choose three.)
A.
Pet a = new Dog();
B.
Dog d = new Beagle();
C.
Dog f = new Pet();
D.
Beagle c = new Dog();
E.
Pet e = new Beagle();
F.
Pet b = new Pet();
The correct answer is ADE