Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: About inheritence ? and Autoload ?

by pajout (Curate)
on Nov 25, 2009 at 08:33 UTC ( #809292=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    package Animal; #parent class, in file lib/Animal.pm 
    sub new {
    ...
      $self->output_sound("khro");
    }
    1;
    
  2. or download this
    use Animal::Dog::Sheepdog;
    my $helper = Animal::Dog::Sheepdog->new();
    ...
    #Once you have an instance, you can call it's methods by this way:
    
    $helper->sound;
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (4)
As of 2016-10-01 17:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?






    Results (3 votes). Check out past polls.