Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

(jeffa) 3Re: normal objects?

by jeffa (Bishop)
on Jan 25, 2001 at 01:23 UTC ( [id://54131]=note: print w/replies, xml ) Need Help??


in reply to Re: Re: normal objects?
in thread normal objects?

Yes there will be a conflict. You will need this as well:
package Beef; use vars qw(@ISA); #if you use strict @ISA = qw(Cow);
Which is why it's wise to plan out your inheritance tree before you start coding. OOP is only as good as its design.

To be technical, Beef IS NOT a Cow - a Cow HAS Beef. Take a look into aggregation for alternatives to inheritance.

Jeff

L-LL-L--L-LL-L--L-LL-L--
-R--R-RR-R--R-RR-R--R-RR
F--F--F--F--F--F--F--F--
(the triplet paradiddle)

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (2)
As of 2024-04-26 05:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found