Answered step by step
Verified Expert Solution
Question
1 Approved Answer
public abstract class Vacation { protected String destination; protected int budget; public Vacation ( String name, int budget ) { this.destination = name; this.budget =
public abstract class Vacation
protected String destination;
protected int budget;
public VacationString name, int budget
this.destinationname;
this.budgetbudget;
public String getDestination return destination;
public int getBudget return budget;
public void setDestinationString name destinationname;
public void setBudget int budgetthisbudgetbudget;
public abstract int overBudget;
returns by how much vacation is over budget could be negative
public String toStringreturns the details of the current vacation
return "unknown vacation details";
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started