Fill This Form To Receive Instant Help

Help in Homework
trustpilot ratings
google ratings


Homework answers / question archive / There are four java files in the downloaded code

There are four java files in the downloaded code

Computer Science

There are four java files in the downloaded code. The TravelAgency.java and TravelDestination.java classes violate a SOLID design principle and they do not implement a correct design pattern. Note: This violation causes to modify both the classes if we need to add support for adding a new “travel destination type”. This may appear trivial in the current example but consider the consequences in a big software application that needs to keep changing with changing requirements. For each change, you need to modify, test, and deploy the entire application. That not only makes the application fragile and expensive to upgrade. This may lead to more software defects (or bugs). Your assignment for this situation is to do the following: a. Rewrite the code and if needed add more classes by applying the correct SOLID design principle and the design pattern such that we do not have to keep changing the TravelDestination.java or TravelAgency.java files if we need to add new Travel Destination types to the software. b. Demonstrate in the newly created code such that adding a new travel destination type of “VINYARDS” does not require you to make any changes to the TravelAgency.java and TravelDestination.java files. Also make changes to the TestTravelAgency.java to test the working of all the code including the new VINYARDS travel destination.

Purchase A New Answer

Custom new solution created by our subject matter experts

GET A QUOTE

Related Questions