Inheritance

An important feature of the object-oriented paradigm is the ability to specify a common functionality for different classes and implement it inside one class. All classes (descendants) that should share this functionality will inherit from that class (base class). We may also say that descendant classes extend a base class, increasing our code reusability and reducing the possibility of errors (useful for debugging).

PerlNET provides a convenient and easy-to-use way to inherit from .NET classes. In this section, you will find all the required information for implementing inheritance.

System.Object

In the previous section, we stated that only .NET types in PerlNET may extend other .NET classes. The System.Object class is kind of an ...

Get Programming PERL in the .NET Environment now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.