11-14-2007, 01:21 PM
|
#8 (permalink)
|
|
The Prestige
Join Date: Oct 2007
Location: Manchester, UK
Posts: 836
Thanks: 31
|
Great article Karl m8.
Quote:
|
Personally, i would think a good example of abstracts and interfaces would be when creating a factory class for a database and using it for the DB type selector classes.
|
i agree, it serves a good educational purpose, i have created a tutorial not long ago about that but my explanation of interfaces lacked somewhat more of there powerful capabilities.
this is certainly a better explanation than i gave, and i didnt really explain thier full capabilities i.e. polymorphism (one of the main pillars of OOP) keep up the good work.
We really do need a place to put all these fine tutorials, because they tend to get lost in a forum.
Ciao for now
__________________
mysql> SELECT * FROM `users` WHERE `users`.`clue` > 0;
Empty set (0.00 sec)
|
|
|
|