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 here is objects. As we progress through this tutorial we will see how data and functions can be represented as re-usable objects, thus cutting down on code and time.

What is an Object

Simply put, an oject is a bunch of variables and functions all lumped into a single entity. The object can then be called rather than calling the variables or functions themselves. Within an object there are methods and properties. The methods are functions that manipulate data withing the object. The properties are variables that hold information about the object.

Basics of PHP5 Class
Declaring Class and Initializing Class Object
Define Attributes for Class
Define Methods for the Class
Defining Class Constants

Constructors and Destructors in PHP5
Constructors in PHP5
Destructor in PHP5

Object Oriented Programming in PHP5
Inheritance in PHP5
Polymorphism in PHP5
Function Overriding in PHP5

Share This Post

Related Articles

Leave a Reply

*