TranceNote
04-08-2005, 04:45 AM
Hello!
Im having a small problem with classes in PHP, I want to extend more then one class but I dunno if I can?
for example can I do like this:
class monkey extends animal, cage {
}
if it is possible which one of them will be concidered "parent".
in java you would have to use "implements" for the second class but that recuires cage to be a interface.
What are the rules for php for this problem? =)
Thanks!
Im having a small problem with classes in PHP, I want to extend more then one class but I dunno if I can?
for example can I do like this:
class monkey extends animal, cage {
}
if it is possible which one of them will be concidered "parent".
in java you would have to use "implements" for the second class but that recuires cage to be a interface.
What are the rules for php for this problem? =)
Thanks!
