Abstract
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. It argues that programs should isolate the computation classes from the presentation classes, and for this you need classes to mediate between them. The computation, presentation, and mediator classes are called model, view, and controller. This chapter introduces the MVC pattern, which is the preferred way to organize these classes in a program. The chapter discusses the advantages of using the MVC pattern and gives several examples.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Author information
Authors and Affiliations
Rights and permissions
Copyright information
© 2019 Edward Sciore
About this chapter
Cite this chapter
Sciore, E. (2019). Model, View, and Controller. In: Java Program Design. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-4143-1_11
Download citation
DOI: https://doi.org/10.1007/978-1-4842-4143-1_11
Published:
Publisher Name: Apress, Berkeley, CA
Print ISBN: 978-1-4842-4142-4
Online ISBN: 978-1-4842-4143-1
eBook Packages: Professional and Applied ComputingApress Access BooksProfessional and Applied Computing (R0)