1.

What are the base class and derived class in Perl?

Answer»

Programmers use both base class and derived class CONCEPTS while implementing inheritance. The base class is the parent class or super class in which various implementations reside. It helps in the creation of other CLASSES called the derived class.  
The derived class is the child class or the sub class, which gets inherited from the parent class TAKING some or all its PROPERTIES. It helps in code REUSABILITY.



Discussion

No Comment Found