Dependency Injection(DI) is a part of software design. DI is a procedure for managing object dependencies with another object so it will eliminate hard-coding dependencies
Category: Php Oops
Php Oop Access Modifiers
In Php, we use access modifiers with method or function or variables. Access modifiers control where method and properties will be accessible. Access modifiers are
Final keyword in PHP
In Php we can use final keyword with Classes and Methods. 1. Final Classes Prevent inheritance 2. Final Methods Prevent Method Overriding Final Classes:
Static Keyword In PHP
Here we discuss use of static keyword in php oops. In php we can use static keyword with properties and methods. When we declared any
Abstraction in php
Abstract Classes in PHP Abstract classes must have at least one abstract method. In php we can make class abstract using abstract keyword. All Child
Inheritance in php
In inheritance , when a class drives from another class. Child class inherit parent class using extends keyword in child class, means that child class
Interface in php
In interface, we are using interface keyword in place of class keyword. Interface have methods without implementations which means that methods are abstract methods. All
Namespaces in php
Namespace concept is very old but it introduced in php very lately. In php 5.3, namespace concept was added. Namespace was came for removing same