Classes and functions are orthogonal, they aren't a replacement for each other. Classes are a collection of data and functions that work on that data. If you design your classes well (which takes some skill), you end up with a self contained unit. Basicly, a class is a C struct that allows for functions as members without having to use function pointer syntax, and that has special functions called automaticly when you create or delete one rather than having to call one by hand (called the constructor and destructor respectively).From: gossamer axe <[EMAIL PROTECTED]>
PHP and C do look similar from what I can tell. I did read somewhere that Java is more like C++ in the way it uses classes as opposed to C's functions. I know PHP uses classes, but again, I haven't gotten that far =P
All in all, its not really all that different from C code- in C you create interfaces that act as a self contained unit, and you end up creating functions that initialize structs that you call explicitly. People who act like OOP is a huge paradigm shift either don't really get OOP or don't really get C.
Gabe
-- [email protected] http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-lpsg
