In PHP, an abstract class is one in which there is at least one abstract method. An abstract method is one that is declared as a method but not implemented in the code as the same.

BY Best Interview Question ON 15 Jul 2020

Example

abstract class ParentClass {
  abstract public function someMethod1();
  abstract public function someMethod2($name, $color);
  abstract public function someMethod3() : string;
}