Interview-Example of Model View Controller In Real World

This is another simple question which was asked to me in an interview.
As all interviewer requires real world example of every concept so the MVC (Model View Controller) application can be seen in a Calculator.

The buttons is the Controller.-> when you press the add button request is send to model.
The back end hidden knowledge is Model-> When you press the add button some business logic runs let say two number are added in the calculator then the answer is send to view.

The Display is View->The View is responsible to display the result.

mvcdiagram

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s