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 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
Get step-by-step solutions from verified subject matter experts
