OOPS in PHP

£1.00

Class is like your house blueprint. Before your house is constructed, there is a house blueprint. It is not an actual house, but a plan how this house will look like, how many rooms it will have and so on. Then the house will be constructed by following the blueprint exactly. In this analogy, the house blueprint is a class and your actual house is an object. We can have unlimited objects of a class, just like we can build unlimited exact houses by following the same house blueprint.

Category:
PHP Object-Oriented Programming Beginner’s Guide
  • Class vs Object. Class is like your house blueprint. …
  • PHP Class. Class is consist of properties and methods. …
  • Visibility. Each method and property has its visibility. …
  • Inheritance. It lets subclass inherits characteristics of the parent class. …
  • Polymorphism. …
  • Encapsulation. …
  • Abstraction. …
  • Interface vs Abstract class.

Reviews

There are no reviews yet.

Be the first to review “OOPS in PHP”

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