Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Start by taking a look at the BookingSystemController class. You do not need to understand all of the code in it , some of the

Start by taking a look at the BookingSystemController class. You do not need to understand all of the code in it, some of the constructs such as Streams we will be learning about in later weeks.
The diagram below illustrates the overall system structure.
The booking system is broadly speaking an Abstract Data Type (ADT)- it is a system that contains information (data), has meaning (type) and functions as a black box (is abstract). This means that the system can be used by different ADT Clients who can each create an instance of and use the system without understanding how it is implemented under the hood. For example in the diagram above, ADT Clients of the booking system could include the tests we have written or an API layer that is using the BookingSystemController, or a Command Line Interface which acts as a wrapper around the controller.
Q1: Why is this approach considered good design? Write the answer in your blog for this activity. In your answer, consider the terms abstraction, encapsulation and modularisation.
Q2: What is meant by the term "black-box"? How are the tests inside BookingSystemTest black-box?
In the proceeding tasks, you will be able to edit any of the classes inside the hotel package except for BookingSystemController. You should not need to edit it, though you can modify the internal mechanics of the class if you like without changing the external interface (public methods).

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Big Data Systems A 360-degree Approach

Authors: Jawwad ShamsiMuhammad Khojaye

1st Edition

0429531575, 9780429531576

More Books

Students also viewed these Databases questions