in reply to When to use OO
Do you blend procedural programming with OO?
The dividing line between "procedural" and "object-oriented" isn't really that clear. I'm not sure an unambiguous definition for OOP even exists. Most (all?) OO languages can be thought of as a subset of procedural languages. Attempts to create "pure OO" languages haven't been overwhelmingly successful. Most (all?) of those provide some degree of support for procedural conventions. At the very least, OO and procedural languages both fall under the larger "imperative programming" heading (as opposed to logical and functional programming.)
I prefer to think of OO as a natural extension of the procedural approach; the key enhancement being the association of procedures with the data they act on. OO is to data as structured programming is to flow control.
So, yes. And underneath the covers, I use branches and loops in pretty much all of my class implementations... :-)
-sauoq "My two cents aren't worth a dime.";
|
|---|