pattern ques.

mallika shah

Ranch Hand

Posts: 164

posted 9 years ago

You want to decouple business logic from data access logic and adapt the data resource being accessed such that it can be changed easily without any impact to your business logic code. Which design pattern would you use?

ans ata access object

Data Access Object is not in exam, but if a ques has a situation where this pattern only can be applied though having two options of: MVC and Data Access Object, what should be selected? data access object ( which is not in the course) or MVC???

Originally posted by mallika shah: Data Access Object is not in exam, but if a ques has a situation where this pattern only can be applied though having two options of: MVC and Data Access Object, what should be selected? data access object ( which is not in the course) or MVC???

You're saying it's not on the exam but what if it is?

DAO used to be on the exam and that's how you found it on a mock question. It will never be a correct option on the current exam.

A good workman is known by his tools.

Muralidhar Adhikarla

Greenhorn

Posts: 14

posted 9 years ago

Hi,The DAO pattern is not in the exam and i think you wont get these type of questions in the exam .Offcourse the answer to that question was DAO pattern . The main motivation for using MVC is to separate your presentation logic from your business logic. The idea is to have a �controller� component that mediates between the two. I hope this helps .