Question: Pseudocode : Write an abstract class called Vacation includes a budget and a destination. It has an abstract method returning by how much the vacation

 

Pseudocode :

Write an abstract class called Vacation includes a budget and a destination. It has an abstract method returning by how much the vacation is over or under budget. This class has two non-abstract subclasses:

All-Inclusive Vacation

brand (such as ClubMed, Delta Vacations, etc)

a rating (you can use # of stars)

price

Piecemeal Vacation

set of items (hotel, meal, airfare, etc)

set of corresponding costs (hotel cost, meal cost, airfare cost, etc.)

You need to write a test class to test all these classes and methods in each.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!