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.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
13.59.9.236