class Grandfather {
protected function stuff() {
// Code.
}
}
class Dad extends Grandfather {
function __construct() {
// I can refer to a member in the parent class easily.
parent::stuff();
}
}
class Kid extends Dad {
// How do I refer to the stuff() method which is inside the Grandfather class from here?
}
How can I refer to a member of the Grandfather class from within the Kid class?
My first thought was Classname::method()
but is there a keyword available such as self
or parent
?