Website And Mobile Application Development Company In India



We can not create object of abstract class, but inherit class and use methods of abstract class.

- Using inheritance you can access property or methods of one class to another class.

- In PHP multilevel inheritance is possible but multiple inheritance is not possible. In simplified terms in php child class can not inherit more than one parent class.

- But hierarchical inheritance possible, parent access grand parent property and grand child access property of parent class.

Static methos and variable directly access out site class without create object of that class using ::(scope resolution operator).

There are 3 types of visibility to control methos and variable in php.

  • Public
  • Protected
  • Private

  • Inheritance
  • Abstraction
  • Encapsulation
  • Polymorphism

Object is instance of class, to use methods and variable of class out side the class.

Collection of function(methods) and variable to perform particular task.

$a = '1';
$b = &$a;
$b = "2$b";
echo $a.", ".$b;

Below are the diffrent pattern like star, 123 etc...

A series of numbers in which each number ( Fibonacci number ) is the sum of the two preceding numbers. The simplest is the series 1, 1, 2, 3, 5, 8, etc.