Does java support multiple dispatch? If not how is the below code working?
问题 Does java support multiple dispatch? If not how is the below code working? Account.java public interface Account { public void calculateInterest(); } SavingsAccount.java public class SavingsAccount implements Account { } LoanAccount.java public class LoanAccount implements Account { } InterestCalculation.java public class InterestCalculation { public void getInterestRate(Account objAccount) { System.out.println("Interest Rate Calculation for Accounts"); } public void getInterestRate