© Edward Sciore 2019
Edward ScioreJava Program Designhttps://doi.org/10.1007/978-1-4842-4143-1_11

11. Model, View, and Controller

Edward Sciore1 
Newton, MA, USA

This last chapter of the book takes up the issue of how to separate a program’s computation-related responsibilities from its presentation-related ones. You may recall that Chapter 1 first addressed this issue when it created version 2 of the banking demo. Version 2 contained the new classes BankClient, which embodied the presentational responsibilities, and Bank, which embodied the computational ones.

It turns out that Chapter 1 didn’t go far enough. This chapter argues that programs should also isolate the computation classes from the presentation classes, and for this you need classes ...

Get Java Program Design: Principles, Polymorphism, and Patterns now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.