| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Perl module P213
Creating your own Classes
Exercises, examples and other material relating to training module P213. This topic is presented on public course Perl for Larger Projects
In Perl, you can define a class of objects in a module. All the standard Object Oriented facilities are available, and we start with constructors, destructors, instances and accessor methods. Related technical and longer articles Is Perl truly an OO language?Object Orientation in Perl - First Steps Examples from our training material
Background information
Some modules are available for download as a sample of our material or under an Open Training Notes License for free download from http://www.training-notes.co.uk.
Topics covered in this module
Resume -- using a class.
Background to instance variables. Variables, addresses of variables, contents of variables. A first class. Structure of the class file. The new method. Other methods in the class. Storing information using complex structures. Writing applications that are independent of the class internals. Using a scalar to store information within a class. Using a list to store information within a class. Using a hash to store information within a class. Further capabilities of a hash. The ability to provide generic set and get methods. AUTOLOAD. Summary. Complete learning
If you are looking for a complete course and not just a information on a single subject, visit our Listing and schedule page. Well House Consultants specialise in training courses in Python, Perl, PHP, and MySQL. We run Private Courses throughout the UK (and beyond for longer courses), and Public Courses at our training centre in Melksham, Wiltshire, England. It's surprisingly cost effective to come on our public courses - even if you live in a different country or continent to us. We have a technical library of over 700 books on the subjects on which we teach. These books are available for reference at our training centre. Also available is the Opentalk Forum for discussion of technical questions. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
PH: 01144 1225 708225 • FAX: 01144 1225 793803 • EMAIL: info@wellho.net • WEB: http://www.wellho.net • SKYPE: wellho PAGE: http://www.wellho.net/resources/P213new.html • PAGE BUILT: Sat Oct 16 08:23:07 2010 • BUILD SYSTEM: wizard |