s***k 发帖数: 23 | 1 【 以下文字转载自 Programming 讨论区,原文如下 】
发信人: stock (Microsoft is dead), 信区: Programming
标 题: Perl for programmers(11): package design in perl
发信站: The unknown SPACE (Fri May 26 14:07:38 2000) WWW-POST
In perl, object oriented programming is based on package.
A package is a class. its members are all public.
Each package has an array @ISA to defined base class.
if Perl can not find a method, it will look into the base
class
A method is simply a subroutine.
Constructor and destroyer for a package is BEG |
|