featured image for php oop lesson 5 - basics

OOP PHP Lesson 5 – Inheritance and scope resolution operator

Inheritance means that you can derive classes from a parent class, and all methods and properties of parent class will be accessible in the...
featured image for php oop basics - a red flower photo

OOP PHP Lesson 4 – __autoload() function

Reasonable approach to class definition storage is to keep every class definition in a separate file. However, if we have many classes, the need...
a metal screw - illustration for php oop lesson 3 basics

OOP PHP Lesson 3 – Constructor and Destructor

Usually - in most languages - constructor is a function which has the same name as class name. It was so in PHP v....
featured image for php oop lesson 2 - basics

OOP PHP Lesson 2 – Simple Class Interface

Second lesson of object oriented programming in PHP language will introduce access specifier private. Lets modify Customer class (Customer.php): class Customer { private $name=""; //set as...

OOP PHP Lesson 1 – First Class

In first lesson of Object Oriented Programming I use very simple example of a class. This example is not political correct approach to object...

Recent Posts