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

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!