Featured Articles
429 days agojquery animated charts and graphs
449 days agojQuery Calendar Widget Plugin
what are the difference between abstract class and interface in php
S.No
Abstract Class
Interface
1
For abstract class a method must be declared as abstract. Abstract methods doesn’t have any implementation.
For interface all the methods ...
php 5 oops (object oriented programming) tutorial
What is OOP
Object Oriented Programming (OOP) is a programming concept that treats functions and data as objects. OK, not the best definition but gives us an opening. The key word ...
OOPS in PHP 5 Tutorial – 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 ...
OOPS in PHP – Declaring Class and Initializing Class Object
In Object Oriented Programming Classes is the main entity and all other features of OOP work around the Classes. In this tutorial we will be discussing on declaring class in PHP5. Also ...
OOPS in PHP5 – Polymorphism in oops
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 ...
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 ...
PHP5 OOPS Constructor – __construct() Method
Construcors are special function in object oriented programming. It gets called automatically whenever object of class is created. This is useful for performing any pre operations before ...
PHP5 OOPS Tutorial – Defining Class Constants
In PHP5 we can defines class level constants that will not change its value within the class scope. We can use the class constants in php5 using a new keyowrd “const”. Only ...
Define Methods for the Class
Now once you have declared class and all its data members now will have to declare all the methods that the class will use. This tutorial will guide you to create methods for class.
...
Define Attributes for Class
We have seen on how to declare class and now we have to define the attributes or the data member that will hold the data within the class. This tutorial will guide you to create attributes ...
