OOPS in PHP 5 Tutorial - Using Interface
This article will guide through the Interface Class in Object Oriented Programming. In simple words Interface is a class with no data members and contains only member functions and they lack its implementation. Any class that inherits from an interface must implement the missing member function body. Interfaces is also an abstract class because abstract […]
OOPS in PHP 5 Tutorial - Static Keyword
This article will guide you on the static keyword used in PHP5. Unlike the methods and data members used in OOPS where the scope is decided by access specifiers, the static methods/attributes are available as a part of the class. So it is available to all the instance defined for the class. To implement static […]
OOPS in PHP 5 Tutorial - Abstract Class
This article will guide you on the Abstract Class used in PHP5. Also it will give an insight on what abstract class is all about when we talk about Object Oriented Programming Concept.
What is an Abstract Class?
An abstract class defines the basic skeleton for the class. It contains attributes and members but some members are […]
OOPS in PHP 5 Tutorial - Parent Keyword
This article will guide you through the PARENT keyword used in OOPS implementation in PHP5. Parent Keyword allows to forcefully call the parent method and not the child method. This is useful when you are implementing Polymorphism in PHP5. This keyword is also very useful if you want the derived class to call the parent […]
OOPS in PHP 5 Tutorial - Function Overriding
This article will guide you through the Function Overriding which forms the common feature of OOPS. In Object Oriented Programming Function Overriding refers the base class and the child class methods with same name, signature and access specifier.
Bookmark It
Hide Sites
OOPS in PHP 5 Tutorial - Exploring Inheritance
This tutorial will guide you through one of the main feature of Object Oriented Programing which is called Inheritance. Basically Inheritance is a mechanism where a new class is derived from the existing base class. The derived class shares/inherit the functionality of the base class. To extend the class behavior PHP5 have introduced a new […]
OOPS in PHP 5 - Polymorphism
Polymorphism in PHP5 is a technique where the function to be called is detected based on the class object calling it at runtime. The basis of Polymorphism is Inheritance and function overridden.
Bookmark It
Hide Sites
OOPS in PHP 5 Tutorial - Defining Class Constants
In PHP5 you can defines class level constants that will not change its value within the class scope. For using class constants PHP5 have introduced a new Keyword “const“. Only a string or numeric value can be assigned to a constant. Arrays, Objects and expressions cannot be assigned to a constant. A class constant can […]
OOPS in PHP 5 - instanceOf Operator
PHP5 has come up with a new operator “instanceof”. This operator is used to check whether the objects passed as operands to this method belongs to the same class or not. This is very useful in runtime environment where you want to know the parent of the class. If left operand belongs to the child […]
OOPS in PHP 5 - __destruct() Method
Destructor are special function in Object Oriented Programming. It gets called automatically whenever object of a class is destroyed or goes out of scope. This is useful for clean up operation before cleaning the memory. PHP 5 uses special keyword “__destruct” to define destructor of the class.
Bookmark It
Hide Sites



















