• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

pattern ques.

 
mallika shah
Ranch Hand
Posts: 164
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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???

thanks,mallika
 
Marc Peabody
pie sneak
Sheriff
Posts: 4727
Mac Ruby VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Muralidhar Adhikarla
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 .
 
mallika shah
Ranch Hand
Posts: 164
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks Mark and muralidhar..
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic