Page 1 of 1

Type Hinting on a series of classes, extends from same class

Posted: Fri Nov 19, 2004 1:19 pm
by fangel
Hi,

I have a series of classes which extends from the class. I then wont to do Type Hinting, but I wan't all the classes to pass, is this possible by means of simple type hinting?

Would help a lot of it was..

Morten Fangel

Posted: Fri Nov 19, 2004 1:26 pm
by timvw
what is the use of typehinting if you allow all types? :)


anyway, you could create an abstract class Object. And then let all classes extend that class. this way you can typehint Object

Posted: Fri Nov 19, 2004 2:50 pm
by fangel
I don't wan't to allow _all_ types... I wan't to allow all classes which extends from _one_ class (ConfigBox)

Morten