View Single Post
Old Mar 18th, 2007, 4:40 PM   #2
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
Imagine that you're building a lawnmower. There's a lot of diverse functionality there. How would you divide it all up into coherent objects (classes)? How would you restrict or constrain normal access to, say, the carburetor (its interface)? Don't let it buffalo you, it's a rational process.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code.
Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers
DaWei is offline   Reply With Quote