Which two statements describe the advantages of inheritance as compared to coding to an
interface? (Choose two.)
A.
The reuse of existing code implementations.
B.
Allows you to use one object in place of another.
C.
Inheritance allows you to restrict the behavior of objects.
D.
Inheritance promotes encapsulation better than interfaces.
E.
Only through inheritance can an object be of multiple types.