| PHP5 Screwy Inherritance Ok, i have this lovely situation, lets say i have 3 classes, A, B, and C.
C derives from B which derives from A (extends).
A defines the member function foo.
B doesnt do anything regarding foo.
C wants to redefine foo.
QUESTION: does ignoring an inherrited member function mark it implicitly as final?
heres "sample" code
class A
{
function foo()
{
//some function body
}
}
class B extends A
{
//anything not regarding foo
}
class C extends B
{
function foo()
{
//redefined body
}
}
the problem is when i try and call foo from a class C, i get an error (it looks like $this is not defined)
thanks a lot
-Dan |