Consider an online holiday booking system. The users can register to book a holiday package. Currently, the design model includes the classes: User and Booking. Assume the class, Group Booking, is a sub-class of the class, Booking. Which of the following cannot be inherited by the Group_Booking class in the object-oriented design? Select one: O a. The constructors of the Booking class O b. The protected attributes of the Booking class O C. The public methods of the Booking class Od. The protected methods of the Booking class

EBK JAVA PROGRAMMING
9th Edition
ISBN:9781337671385
Author:FARRELL
Publisher:FARRELL
Chapter11: Advanced Inheritance Concepts
Section: Chapter Questions
Problem 3PE
icon
Related questions
Question
Consider an online holiday booking system. The users can register to book a holiday package. Currently, the design model includes the classes: User and Booking. Assume the class,
Group_Booking, is a sub-class of the class, Booking. Which of the following cannot be inherited by the Group_Booking class in the object-oriented design?
Select one:
a. The constructors of the Booking class
O b. The protected attributes of the Booking class
O c. The public methods of the Booking class
O d. The protected methods of the Booking class
Transcribed Image Text:Consider an online holiday booking system. The users can register to book a holiday package. Currently, the design model includes the classes: User and Booking. Assume the class, Group_Booking, is a sub-class of the class, Booking. Which of the following cannot be inherited by the Group_Booking class in the object-oriented design? Select one: a. The constructors of the Booking class O b. The protected attributes of the Booking class O c. The public methods of the Booking class O d. The protected methods of the Booking class
Consider an online holiday booking system. The software developers have identified the classes, Booking, Individual_Booking and Group_Booking via inheritance in their initial design.
Which of the following should have a hollow triangle pointed to in the object-oriented design?
a. Group_Booking
b. Either Individual_Booking or Group_Booking
c. Individual Booking
d. Booking
Transcribed Image Text:Consider an online holiday booking system. The software developers have identified the classes, Booking, Individual_Booking and Group_Booking via inheritance in their initial design. Which of the following should have a hollow triangle pointed to in the object-oriented design? a. Group_Booking b. Either Individual_Booking or Group_Booking c. Individual Booking d. Booking
Expert Solution
steps

Step by step

Solved in 3 steps

Blurred answer
Knowledge Booster
Software Development
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
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT