what is MVC Pattern?

Answer Posted / ak

MVC is basically a layered design patterl in which separate
conceptual units are set to function independently.

For example: there may be multiple VIEW ( display monitors,
fone communicators, AVR's ) at a railway platform showing
timings of perticular train. Its sole purpose is to
display. How it will display is its responsibility which no
other layer of the design is concerned with. To get what to
display it just interacts with a MODAL which in this case
is a database.

MODAL layer is completely independent from collecting data
( controller layer) and showing it on platform ( view
layer ). Its sole responsibility is to save and retrieve
data from and to respective clients.

CONTROLLER layer is something which is involved with other
complex tasks like tracking time, distance, speed etc of
the trains.

Comments are appreciated.

Is This Answer Correct ?    4 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is singleton scope thread safe?

622


Is dependency injection a design pattern?

584


Shall we use abstract classes or interfaces in policy / strategy design pattern?

597


Why singleton beans are not thread safe?

571


What is the executor design pattern?

727






Describe the builder design pattern

665


What are the disadvantages of singleton pattern?

582


What is onion architecture?

636


Write the code for a singleton class?

620


Is singleton a design pattern?

597


What are the types of design patterns?

568


What is lexi design pattern?

710


What are the most important software design patterns?

613


Give me example of observer design pattern?

630


When singleton pattern is used?

601