Thursday, 17 March 2016

PHP Inheritance

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();

Next Topic

No comments:

Post a Comment