quick links

Method overloading?

Method with same name but diffrent parameter is called method overloading.

class Addition {
function compute($first, $second) {
return $first+$second;
}

function compute($first, $second, $third) {
return $first+$second+$third;
}
}
$obj1 = new Addition;
$obj1->compute('2','2');

 

About Us

Joomla Web Solution

We love working with PHP, HTML5, CSS3, jQuery and the most-loved content management framework in the world, Joomla!

LIKE US ON FACEBOOK