Question: (a) Write Java code to define an interface called Locatable which has one method called location() which takes no parameters and has a Position return

(a) Write Java code to define an interface called Locatable which has one method called location() which takes no parameters and has a Position return type. You can assume the Position class already exists. (b) Write Java code to define a class called CampusBike which implements the Locatable interface from (a). When the location() method is called it should return a new instance of the Position class, using an already existing two argument constructor and the values 29.80 and 121.56
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
