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 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access