Posted on : 03-02-2008 | By : admin | In : PHP, PHP5 OOPS Tutorials
6
In this post, we learn what is an abstract class and an interface.
- What is an Abstract Class?
- Private methods cannot be Abstract
- What is an Interface?
- Defining an Interface
- Abstract Class v/s Interface
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 script. The best place to put the autoload() file is in your configuration file which is loaded in all your other scripts.