Question: Create an interface named Flatinter. The interface Flatinter has a method with signature public String getflatOwner(int authorized); Create a class named Flatclass which implement the
Create an interface named Flatinter. The interface Flatinter has a method with signature public String getflatOwner(int authorized); Create a class named Flatclass which implement the interface Flatinter The implemented method should return "the owner has id 178" if authorized >0, it should return "permission denied" if authorized =0 and should return "error" it authorized 0 Answer: (penalty regime: 0,0,0,2,4,6, ... %) Reset answer 1 /write interface below WN 4 /write class below
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
