Question: 2. Complete the following programming assignment: Design a Java interface called Priority that includes two methods: setPriority and getPriority. The interface should define a way

 2. Complete the following programming assignment: Design a Java interface called

2. Complete the following programming assignment: Design a Java interface called Priority that includes two methods: setPriority and getPriority. The interface should define a way to establish numeric priority among a set of objects. Your setPriority method should take a priority as a parameter. Design and implement a class called Task that represents a task (such as a to-do-list) that implements the Priority interface. Create a driver class to exercise some Task objects. This is a fairly open-ended project, so you can be as simple or complex as you would like. The only requirement is that you create an interface, a class that implements that interface, and a driver class. Think carefully about your design and use good object oriented principles in your implementation. Briefly describe your implementation: Copy your output as text below: Copy your Priority interface as text below: Copy your Task class as text below: Copy your driver method as text below

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!