OOP in PHP · 3 min read
Dependency injection
Dependency injection is a technique where one object supplies the dependencies of another object. An injection is the passing of a dependency…
WritingNotes on artificial intelligence, PHP, Laravel and the craft — 48 articles, mostly written to make myself understand something properly. OOP in PHP · 3 min read Dependency injectionDependency injection is a technique where one object supplies the dependencies of another object. An injection is the passing of a dependency… Notes · 3 min read Check number is Fibonacci numbers or notA simple way is to generate Fibonacci numbers until the generated number is greater than or equal to ‘n’. Following is an… OOP in PHP · 2 min read ConstructorWhat does Constructor mean? A constructor is a special method of a class or structure in OOP that initializes an object of… OOP in PHP · 7 min read Dependency injection in PHPDependency Injection is a software design pattern that allows avoiding hard-coding dependencies and makes possible to change the dependencies both at runtime… OOP in PHP · 1 min read Differences between abstract class and interface in PHPIn abstract classes this is not necessary that every method should be abstract. But in interface every method is abstract. Multiple and… OOP in PHP · 6 min read Traits in PHPOne of the problems of PHP as a programming language is the fact that you can only have single inheritance. This means… OOP in PHP · 5 min read Inheritance in PHPInheritance is a concept in object oriented programming. With the help of inheritance we can get all property and method of one… OOP in PHP · 2 min read Overriding in PHPMethod Overriding in OOP ? Basic meaning of overriding in oop is same as real word meaning. In real word meaning of… OOP in PHP · 3 min read Overloading in PHPMethod Overloading in OOP ? Overloading in oop is same as overloading in real word. In real word overloading means assigning extra… |