View Single Post
Old 02-25-2005, 01:27 AM   #4 (permalink)
Valmont
[code][/code] enforcer
 
Valmont's Avatar
 
Join Date: Mar 2003
Location: Netherlands
Posts: 1,544
Valmont is on a distinguished road
If you encapsulate complex tasks in a class, you'll have even more options. For example you could let the Facade create objects (instances) which are relevant to solve a problem at that time. And the user will never know it. For the user, it all seems simple.
But my goal was to demonstrate students that they shouldn't make big, long functions. Yes.

Quote:
LinkedList should be just like a container. ShowItems is not really behaviour of the class, isn't it?
A container shouldn't be responsible for handling the view as well. Indeed.
__________________
Valmont is offline   Reply With Quote