Object Oriented Programming

Table of Contents

About this tutorial
Basic Object Orientation
A little more complexity

About this tutorial

This tutorial will attempt to teach you to program in PHP-GTK 2 in an object oriented manner. PHP5 comes with great object-oriented support and hence we can exploit all of the features of object-oriented programming while making applications in PHP-GTK 2.

Why program in an object oriented fashion? There are a number of advantages of choosing this style of programming, especially if your application is split into several modules and is expected to be thousands of lines long. One of the most important advantages is code cleanliness and organization. It will be much easier for you and others to read and modify your code if you program in an object-oriented manner, than if you had chosen to make your application in a purely procedural way.

If you are convinced that object-orientation is the way to go, let's begin!