Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: OO-style question

by coreolyn (Parson)
on Dec 30, 2000 at 02:39 UTC ( #48918=note: print w/ replies, xml ) Need Help??


in reply to OO-style question

I could be all wrong here, but your question (to me) reads like the definitions of polymorphism. That is to say you want an A structure but you wand to mash it into a B object. Isn't that how you exploit Inheritance Polymorphism?

In otherwords It seems to me that even though it

. . .somehow feels wrong

your 2nd options is the correct one. But my opinion is not from practice on such a problem as yet.

coreolyn Duct tape devotee.
-- That's OO perl, NOT uh-oh perl !-)


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://48918]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (12)
As of 2015-07-02 18:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (44 votes), past polls