An interesting problem with inheritance...

koschei on 2001-04-23T12:22:20

... is that things just stop working without warning and with errors in the wrong place if you mess up your superclass.

Eh?

Well, say you have a Review::Book class which is a subclass of Review::Generic and you get a syntax error in Review::Generic such that you try calling methods that are in the superclass by inheritance from the subclass, you will get the informative error one Can't locate object method "title" via package "Review::Book" at ./process line 38 which doesn't really help, does it?

Takes a little while to work out such things if you've not encountered them before.