RSS

Tag Archive | "classes"

Object Oriented Programming Basics – Extending Classes

Monday, February 22, 2010

1 Comment

Extending classes It’s also possible to have a second class which extends the main class. This make the class able to use the (public) functions (methods) & properties of the main class inside the other class. To extend a class we use extends. Example: class BasicClass { } class Class2 extends BasicClass { } Here Class2 extends the class ‘BasicClass’ which means [...]

Continue reading...

Object Oriented Programming Basics

Friday, February 12, 2010

0 Comments

This tutorial will be explaining the basics of Object Oriented Programming (OOP) classes. Let’s start with getting straight the following question: What will be explained in this tutorial? This tutorial will only explain the basics of OOP programming in PHP which consist of: creating classes creating public, protected and private functions & variables creating objects (instances of classes) using/calling other [...]

Continue reading...

PHVsPjwvdWw+