Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re (tilly) 2: Abstract class methods

by tilly (Archbishop)
on Dec 01, 2000 at 04:34 UTC ( [id://44273]=note: print w/replies, xml ) Need Help??


in reply to Re: Abstract class methods
in thread Interfaces in Perl?

That is why I said that the technique fails if the base class implements stubs. It must list, not define, the methods.

The direct defined check will work, but it means that every subclass must implement all of the methods. So if A is an abstract class, and B inherits from A and C inherits from B, then by default C has to define every one of the required methods.

Log In?
Username:
Password:

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

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

    No recent polls found