Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Perl Object Oriented Exercise

by nandymamith (Novice)
on Jul 04, 2014 at 10:22 UTC ( [id://1092280]=perlquestion: print w/replies, xml ) Need Help??

nandymamith has asked for the wisdom of the Perl Monks concerning the following question:

This node falls below the community's threshold of quality. You may see it by logging in.

Replies are listed 'Best First'.
Re: Perl Object Oriented Exercise
by AppleFritter (Vicar) on Jul 04, 2014 at 10:41 UTC

    I take it you want to know how multiple inheritance in Perl works, i.e. how method resolution is done? Quoting the 3rd edition of Programming Perl (p. 322):

    1. Next, Perl checks for methods inherited from base classes by looking in all parent packages listed in @classname::ISA for a parent::methname subroutine. The search is left-to-right, recursive, and depth-first. The recursion assures that grandparent classes, great-grandparent classes, great-great-grandparent classes, and so on, are all searched.
    2. [...]

    Emphasis mine. perlobj also has more on multiple inheritance.

      See also the mro pragma.

Re: Perl Object Oriented Exercise
by dsheroh (Monsignor) on Jul 04, 2014 at 11:58 UTC
    "Answer"? What's the question?
Re: Perl Object Oriented Exercise
by hippo (Bishop) on Jul 04, 2014 at 10:30 UTC

    "B1" is the answer such as it is.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://1092280]
Approved by Corion
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (6)
As of 2024-04-23 07:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found