Answer:
C
Step-by-step explanation:
All Java objects have a toString() method, which is invoked when you try to print an object. The output will be some unreadable binary data because the toString method of the object has not explicitly define in our BankAccount class. To get a readable text as output, the toString method of our BankAccount class need to be over ride.
Adding the below snippet to the BankAccount class will yield a readable output.
@Override
public String toString() {
return nameOfField;
// nameOfField is the name of field defined in BankAccount class which is passed as parameter when creating an instance of the object.
}