Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
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 imbibing at the Monastery: (7)
As of 2014-12-21 19:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (107 votes), past polls