Consider an online holiday booking system. The users can register to book a holiday package, either as a family holiday or for adults only. The software des would like to apply the Gang of Four (GoF) factory method pattern to the system design. Which of the following should be implemented for the pattern? Select one: a. The Family Package and Adult Only_Package classes should implement the Package class. b. The Package class should implement the Factory class. OC. The Package class should implement the Family Package and Adult Only_Package classes. O d. The Factory class should implement the Package class.

Programming Logic & Design Comprehensive
9th Edition
ISBN:9781337669405
Author:FARRELL
Publisher:FARRELL
Chapter2: Elements Of High-quality Programs
Section: Chapter Questions
Problem 9RQ
icon
Related questions
Question
Consider an online holiday booking system. The users can register to book a holiday package, either as a family holiday or for adults only. The software designer
would like to apply the Gang of Four (GoF) factory method pattern to the system design. Which of the following should be implemented for the pattern?
Select one:
O a. The Family Package and Adult Only_Package classes should implement the Package class.
Ob. The Package class should implement the Factory class.
O C. The Package class should implement the Family_Package and Adult Only_Package classes.
Od. The Factory class should implement the Package class.
Transcribed Image Text:Consider an online holiday booking system. The users can register to book a holiday package, either as a family holiday or for adults only. The software designer would like to apply the Gang of Four (GoF) factory method pattern to the system design. Which of the following should be implemented for the pattern? Select one: O a. The Family Package and Adult Only_Package classes should implement the Package class. Ob. The Package class should implement the Factory class. O C. The Package class should implement the Family_Package and Adult Only_Package classes. Od. The Factory class should implement the Package class.
Consider an online holiday booking system. The users can register to book a holiday package. Assume that the Booking class has two attributes, booking_ref and
booking_type. The booking_ref attribute has the information about the booking reference number whereas booking_date contains the information about the date
of booking. Which of the following special terms describes the above design concept?
Select one:
O a. Data abstraction
b. Information abstraction
O C. Reference abstraction
O d. Attribute abstraction
Transcribed Image Text:Consider an online holiday booking system. The users can register to book a holiday package. Assume that the Booking class has two attributes, booking_ref and booking_type. The booking_ref attribute has the information about the booking reference number whereas booking_date contains the information about the date of booking. Which of the following special terms describes the above design concept? Select one: O a. Data abstraction b. Information abstraction O C. Reference abstraction O d. Attribute abstraction
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Developing computer interface
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage