✅ Перевірена відповідь на це питання доступна нижче. Наші рішення, перевірені спільнотою, допомагають краще зрозуміти матеріал.
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?