Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: OO Inheritence

by eric256 (Parson)
on May 26, 2004 at 13:33 UTC ( #356567=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    package object;
    use Carp;
    ...
       return $old;
    }    
    1;
    
  2. or download this
    package Car;
    use base object;
    ...
    
    sub readonly { qw/Wheels/ };                 
    1;
    
  3. or download this
    package Bike;
    use base object;
    ...
    
    sub readonly { qw/Wheels Passengers/ };
    1;
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://356567]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (18)
As of 2015-07-30 14:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (271 votes), past polls