An introduction to object oriented Perl, continued: Inheritance

Review

Object

An object is a reference (often a hashref) which has been told which class it belongs to using the bless function.

Class

A class is represented by a Perl package. It defines an object's methods.

Method

A method is a Perl subroutine. The first argument to a method subroutine is a reference to the object: methods can access and alter their object's data.