Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: OO Inheritence

by chromatic (Archbishop)
on May 25, 2004 at 19:03 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://356339]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (3)
As of 2024-03-28 17:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found