In Object oriented programming we can define visibility as public, protected, private. So Public variables can be used inside or outside of the class. Whereas Protected and Private variables cannot…
php object oriented programming
-
-
What is Constants In PHP In Object Oriented Programming we can define constants. Mainly when you want to use some variables with some values and you want to make sure…
-
What is Data Encapsulation Data Encapsulation also known as Data Hiding is a very vital object oriented programming concept. In this mechanism user can perform restricted set of operations of…
-
What is Inheritance In Object Oriented Programming inheritance is a concept of extending a class. So if you have a base class let’s say “Vehicle Class”. This class might have…
-
What is Overriding Function overriding is a concept of Object Oriented Programming where we crate function with same name in parent and child class. And PHP calls the function from…
-
What is Final Keyword The concept of Final keyword is important as we can restrict the use of class using this keyword. In Object Oriented Programming when you want to…
-
What is Abstract Class In Object Oriented Programming Abstract keyword is very useful. If we want to create a class that cannot be instantiated but can be extended then we…