Summary

This chapter presented the concepts of object-oriented programming. An object is an entity that contains data and is able to perform certain actions. Both of these characteristics are contained within a class definition, which is stored within a .pm file that implies a particular package. We showed how to construct objects and use them. We discussed inheritance, the ability to reuse methods defined in one class on objects from another class. We also discussed polymorphism, the ability to detect the type of an object while the program is running.

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.