PHP OOP – Traits

The trait keyword is used to create traits. Traits are a way to allow classes to inherit multiple behaviours. Traits provide a way to reuse code across multiple classes without the…

0 Comments

PHP – Overriding Inherited Methods

Function overloading and overriding is the OOPs feature in PHP. In function overloading, more than one function can have same method signature but different number of arguments. But in case…

0 Comments

PHP OOP – Inheritance

When a class derives from another class. The child class will inherit all the public and protected properties and methods from the parent class. In addition, it can have its…

0 Comments

PHP – Access Modifiers

In the PHP each and every property of a class in must have one of three visibility levels, known as public, private, and protected. public - the property or method can be accessed from everywhere. This…

0 Comments

PHP OOP’s – Classes and Objects

PHP is a widely adopted programming language that is highly popular for web development purposes. One of its key strengths is its built-in support for object-oriented programming (OOP). In OOP, classes and objects play a crucial…

0 Comments