class test
{
function test_base()
{
echo "<br>Base class function";
}
}
class client extends test
{
function client_function()
{
echo "<br>Inside of client function ";
}
}
$ob=new client();
$ob->client_function();
$ob->test_base();
{
function test_base()
{
echo "<br>Base class function";
}
}
class client extends test
{
function client_function()
{
echo "<br>Inside of client function ";
}
}
$ob=new client();
$ob->client_function();
$ob->test_base();
No comments:
Post a Comment