quick links

OOPs

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

Method in child class with same name, same parameter and same access as parent class is call method overloading.

PHP introduces the final keyword, which prevents child classes from overriding a method by prefixing the definition with final keyword.

Constructor are automatically called when object are created.

Destructors are automatically called when object are destory.

Traits is look like of class. it contain group of methods you want to use in another class.

Like abstract class we can't create object of traits but we can use it in another class.

So it's solve multiple inheritance problem in PHP.

It's lot of look like interface, but diffrent is in interface we can only define method/function but we can't implement but in traits we can do it.

 

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