logo

Crowdly

Consider the following interface and class inside DelhiOffice.java file interf...

✅ 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?

 

 

100%
0%
0%
0%
More questions like this

Want instant access to all verified answers on moodle.medtech.tn?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!