Using the given definition of the Measurable interface: public interface Measurable { double getMeasure(); } Consider the follow
ing code snippet, assuming that BankAccount has a getBalance method and implements the Measurable interface by providing an implementation for the getMeasure method: Measurable m = new BankAccount(); System.out.println(_________________________); Select the correct expression to display the balance of the bank account.
m.getBalance look like the most appropriate answer but if we take a look at the Measurable interface, we realized that getMeasure doesn't return a String. So, in other to avoid runtime exception, we try to cast the return type to object of BankAccount type.
We need the scenario to solve this feel free to comment on this with your so scenarios and I will provide you with answers or just post another question