Design Patterns MVC Pattern - Design Patterns

What is Design Patterns MVC Pattern?

MVC Pattern stands for Model-View-Controller Pattern. This pattern is use to separate application's concerns.

  • Model - Model represents an object or JAVA POJO carrying data. It can also have logic to update controller if its data changes.
  • View - View represents the visualization of the data that model contains.
  • Controller - Controller acts on both model and view. It controls the data flow into model object and updates the view whenever data changes. It keeps view and model separate.


We are going to make Student object performing as a model.StudentView will be a view class which can print student information on console and StudentControlleris the manager class in charge to store data in Student object and update view Student View as a result.

MVCPatternDemo, our protest class, will use Student Controller to reveal use of MVC pattern.mvc_pattern_uml_diagram

Step 1

Create Model.

Step 2

Create View.

Step 3

Create Controller.

Step 4

Apply the Student Controller methods to demonstrate MVC design pattern procedure.

Step 5

Verify the output.

All rights reserved © 2018 Wisdom IT Services India Pvt. Ltd Protection Status

Design Patterns Topics