Question: class booking { private String pack; private int departDate; private int returnDate; private int numOfPax; public booking () { } public booking (String pa, int

class booking { private String pack; private int departDate; private int returnDate; private int numOfPax; public booking () { } public booking (String pa, int dd, int rd, int nop) { pack = pa; departDate = dd; returnDate = rd; numOfPax = nop; } public void setData (String pa, int dd, int rd, int nop) { pack = pa; departDate = dd; returnDate = rd; numOfPax = nop; } public String getPack() { return pack; } public int getDepartDate() { return departDate; } public int getReturnDate() { return returnDate; } public int getNumOfPax() { return numOfPax; } }

From the class above, please insert the calculation process to calculate the booking for this booking class. Please write a new program and show your output.

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!