Question: 29. Given the following code: Inside the file Bank.java: public abstract class Bank { abstract void withdraw () ; abstract void deposit(); public void balance

 29. Given the following code: Inside the file Bank.java: public abstract

29. Given the following code: Inside the file Bank.java: public abstract class Bank \{ abstract void withdraw () ; abstract void deposit(); public void balance () \{ I/ implementation for balance here \} \} Inside the file Customer.java: public class Customer extends Bank \{ void deposit() \{ I/ implementation for deposit here \} 3 Why does this code not compile? A. The abstract keyword cannot be used with classes, only methods B. The Bank class cannot have a concrete method like balance C. The Customer class cannot extend an abstract class D. The Customer class implements only 1 of the abstract methods of Bank, when it needs to implement both

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!