Posted on February 14th, 2008 by admin
In this tutorial we will cover the following:
What is an exception?
The use of a try…catch block
Anatomy of PHP5 Exception class
Extending the Exception class
A note on unhanded exceptions
Filed under: PHP, PHP Class Examples, PHP Code Examples, PHP Tutorials, PHP5 OOPS Tutorials | 2 Comments »
Posted on February 14th, 2008 by admin
In this PHP tutorial we will understand the following:
Meaning of Final Class
Meaning of Final Method
When to declare a class as final
When to declare a method as final
Filed under: PHP, PHP Class Examples, PHP Tutorials, PHP5 OOPS Tutorials | No Comments »
Posted on February 12th, 2008 by admin
In this tutorial you will learn all about static data members and methods
Meaning of static data members
Meaning of static methods
Defining static data members in PHP5
Defining static methods in PHP5
Accessing static data members in PHP5
Accessing static methods in PHP5
Rules to keep in mind for static methods
[…]
Filed under: PHP, PHP Class Examples, PHP Tutorials, PHP5 OOPS Tutorials | 1 Comment »
Posted on February 11th, 2008 by admin
In this tutorial we will learn the following:
Meaning of Polymorphism
Why method polymorphism cannot be achieved in PHP
PHP 5 Object Polymorphism
Filed under: PHP, PHP Class Examples, PHP5 OOPS Tutorials | 2 Comments »
Posted on November 8th, 2007 by admin
In this PHP5 tutorial you will learn about methods and how to declare and use them in PHP5 class.
Definition of an class method
A class method/functions is the behavior/functionality of a class i.e. they provide the necessary code for the class in which it is defined. Examples could be a saveCustomer() method in the class Customer […]
Filed under: PHP, PHP Tutorials, PHP5 OOPS Tutorials | 4 Comments »
Posted on November 3rd, 2007 by admin
This tutorial will teach you how and when to use the magic method __autoload().
The magic method __autoload() function is a convenience that allows you to use classes without having to explicitly write code to include them.
The magic method __autoload() is not included in your class definition as this is to be called once in a […]
Filed under: PHP, PHP Tutorials, PHP5 Magic Methods, PHP5 OOPS Tutorials | 3 Comments »