I have an example.
class Candidate
is superclass and ExperienceCandidate
is subclass.
i have 2 type to create object is:
ExperienceCandidate temp = new ExperienceCandidate();
Candidate temp = new ExperienceCandidate();
Help me distinguish the differences between these two constructs and which one is used in which case