Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: OO-style question

by merlyn (Sage)
on Dec 30, 2000 at 00:46 UTC ( #48892=note: print w/ replies, xml ) Need Help??


in reply to OO-style question

If B doesn't seem natural responding to A's methods, then B is not an A, and you can't use inheritance. So more likely, B "has an" A, and some of B's methods will be implemented by delegating those to the A instance within B.

But that brings back an odder question. Are B and A really both subclasses of the unnamed base class? Perhaps that's where your problem is.

-- Randal L. Schwartz, Perl hacker


Comment on Re: OO-style question

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (7)
As of 2014-09-16 11:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (10 votes), past polls