ABSTRACTION It is a process of hiding internal structure or implementation details. Abstract Class: In abstract class, it contains at least one or more abstract method. When Classes defined as abstract, then it may not be instantiated. Abstract Method: In abstract method, only declaration of method have in the abstract class. Another Class inherits the abstract class then the implementation or definition is defined into the derived class. Abstract method can not be declared as Private. Example: abstract Class A { abstract public function calSquare($no); } Class B extends A { public function calSquare($no) { return $no * $no; } } $objB = new B(); echo $objB->calSquare(5);
It always seems impossible until it's Done.