✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
Consider the following interface and class inside DelhiOffice.java file
interface IBank{
void withdraw();
void deposit();
}
abstract class Office implements IBank{
public void withdraw() {
System.out.println("Amount withdrawal");
}
}
class DelhiOffice extends Office{
public void deposit() {
System.out.println("Amount deposit");
}
public static void main(String[] args) {
IBank bank=new DelhiOffice();
bank.deposit();
}
}
What will happen after the compilation of the code?
Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!