foo() in Base class is declared as Static. Therefore it is not belonged to specific object but common for all objects. bObj is an object of Base class, therefore it will call foo() in Base class, because foo() is Static.
U
Usama Moud
@Usama Moud
Posts
-
problem with inheritance -
PhpIs your question related to java or php?