begin quoting Gabriel Sechan as of Sun, Apr 10, 2005 at 06:03:48PM -0500: > 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.
Objects are data plus behavior. Classes define objects. Not all OO languages have classes. > If you design your classes well (which takes some skill), you end up Yes. > with a self contained unit. Er, not always. > 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). That's just the C++ implementation, right? > 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. They might get C, but have no concept of structured or modular programming. -Stewart "Coupling and Cohesion are very important concepts" Stremler -- [email protected] http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-lpsg
