PrepAway - Latest Free Exam Questions & Answers

which of the following statements BEST enforces good OO design principles?

Refer to the exhibit to answer the question.

Given that course administrators manage the course catalog and that students then search it for
course descriptions, pre-requisites and section enrollment limit, which of the following statements
BEST enforces good OO design principles?

PrepAway - Latest Free Exam Questions & Answers

A.
Attributes in Course and CourseSection should be moved to the class CourseCatalog.

B.
Attributes in Course and CourseSection should be made public so that they can be accessed
by methods in CourseCatalog.

C.
Attributes in Course and CourseSection should be made private or protected. They should be
accessed by other objects via messages to Course and CourseSection.

D.
Since the course catalog is heavily used by students and course administrators, CourseCatalog
should implement all the required responsibilities instead of delegating to other classes.


Leave a Reply