Problem Statement
Given ‘Animal a = new Dog();’ which concept is illustrated?
Explanation
When a base class reference holds a subclass object (Animal a = new Dog()), it demonstrates polymorphism: the code can treat various subclasses uniformly while each subclass exhibits its own behavior when methods are called.