Question
JAVA HW help thank you! Write a Child Class The class below describes an Instrument, perhaps to keep track of inventory at a store. Write
JAVA HW help thank you!
Write a Child Class
The class below describes an Instrument, perhaps to keep track of inventory at a store. Write a child class- you can choose the class. Add at least one instance data variable and include all appropriate methods. The class should also implement the Breakable interface, shown below.
public abstract class Instrument {
private double price;
public Instrument(double price) {
this.price = price;
}
public double getPrice() {
return price;
}
public void setPrice(double price) {
if(price > 0 ) {
this.price = price;
}
}
public abstract void tune();
}
public interface Breakable {
void careIntructions();
}
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