Question d’entretien chez LG Soft India

Inheritance code example with calling different function from a object which could be reference based and what function will act, the child function or the parent function?