Model/View/Controller
As applications and systems grow, it is important to divide and redivide responsibility so that classes and packages stay small enough to maintain. The phrase model/view/controller (MVC) refers to separating an interesting object—the model—from GUI elements that portray it—the view and the controller. Java supports this separation of responsibility with its OBSERVER mechanics.
The initial versions of the ShowBallistics application combine intelligence about an application GUI with information about ballistics. You can refactor this code, following MVC to divide this application's responsibilities. In this refactoring, the revised ShowBallistics class should retain the views and controllers in its GUI elements.
The creators ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access