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.