Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: OO Inheritence

by chromatic (Archbishop)
on May 25, 2004 at 19:03 UTC ( #356339=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use base Vehicle;
    @ISA = 'Vehicle';
    
  2. or download this
    my %valid = map { $_ => 1 } qw( Wheels Doors Color Passengers );
    my %ro    = map { $_ => 1 } qw( Wheels );
    
    ...
        my ($self, $option) = @_;
        return defined $ro{$option} ? 1 : 0;
    }
    
  3. or download this
    sub _attributes
    {
        return
    ...
        my ($self, $attribute) = @_;
        return exists $self->_attributes()->{ $attribute };
    }
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (4)
As of 2014-07-10 05:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (199 votes), past polls