Perl 5 Object Oriented Programming

1 Day Course
Hands On
Code QAPERLOO

This course has been retired. Please view currently available Perl Training Courses.

Modules

Hide all

Review of References (5 topics)

  • What are references
  • Creating references
  • Using references
  • Dereferencing array and hash references
  • Examining references

Review of Subroutines and Modules (7 topics)

  • Review of subroutines
  • Parameter passing
  • References to subroutines
  • Review of Modules
  • Module loading
  • Namespaces
  • Multiple packages

Overview of Perl OO (7 topics)

  • OO concepts and terms
  • Basic object usage
  • Implementing objects
  • Accessing object fields
  • Constructors
  • Implementing object methods
  • Method call syntax

Constructors and Destructors (7 topics)

  • Object constructors
  • Object destructors
  • Reference counting
  • Object data types
  • Named and virtual constructors
  • Exemplar registry
  • Singletons

Inheritance and Overloading (6 topics)

  • Method inheritance
  • Constructor inheritance
  • Multiple inheritance
  • SUPER
  • UNIVERSAL
  • Operator overloading

Encapsulation (6 topics)

  • Defining an object
  • The fields pragma and strong typing
  • Constructing inside-out objects
  • Inside-out destructors
  • Accessors
  • Inside-out Accessors

Prerequisites

- Existing Perl 5 developers who wish to write and use object orientation. Support staff with Perl 5 experience who intend to support Perl classes and code that uses Perl objects. - Delegates must have recent day-to-day experience of Perl. No previous OO experience is necessary.

Course PDF

Print

Sections