PHP OOP : Abstract Classes

Abstract Class :

  • when we create abstract class then we can not create object of that abstract class.
  • If we want to use abstract class then we only access with derived class .
  • Just abstract write before the class name.
  • when we create abstract class two condition occurs one is abstract method like :- abstract protected function name ( );
  • abstract means incomplete method we declare but not implement (code).
  • In derived class we have to implement of that abstract method.
vikashdev k
Latest posts by vikashdev k (see all)
Tagged : / / / / / / / / / / / /
0 0 votes
Article Rating
Subscribe
Notify of
guest

0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x