PHP - What is OOP?

PHP is also called as Object-Oriented Programming language. Advance PHP contains Object-Oriented Programming concepts.

PHP OOP is Object-Oriented Programming. Procedural programming is about writing procedures or functions that perform operations on the data while object-oriented programming is about creating objects and class that contain both data and functions.

Object Oriented Programming (OOP) is colleaction of class, object, method and variable.

Advantages of PHP Object-Oriented Programming (OOP)

  1. OOP is faster and easier to execute
  2. OOP provides a clear structure for the programs
  3. OOP helps to make the code easier to maintain, modify and debug.So we can reuse function ,class and object.
  4. OOP is used to create full reusable applications with less code and shorter development time
  5. OOPs is more secure programming.

PHP OOPs Introduction

Object Oriented Programming contains below concepts.

  1. Classes and objects
  2. Public ,private, protected properties and methods
  3. Abstract class
  4. Polymorphism
  5. Interface
  6. Constructor & Destructor
  7. Overloading 
  8. Inheritance
  9. Static methods and properties
  10. Methods overloading
  11. Final keyword
  12. Parent:: & self:: keyword


Leave a Reply

Your email address will not be published. Required fields are marked *