1.

Which feature of Perl supports the reusability of codes?

Answer»

As we all know, Perl is an object-oriented programming language, so it supports the concept of inheritance. Inheritance is the concept that helps Perl programmers leverage code reusability. Inheritance SIMPLY means that methods, properties, and data members of a base/parent CLASS will REMAIN available and accessible to the derived/child classes. So, programmers do not have to WRITE the same code LOGIC repeatedly and simply inherit the properties and methods of the parent class.  



Discussion

No Comment Found