Question: 1 Create an interface as follows. public interface Printable { void printToConsole(Object x); void printToFile(Object x); 2 Create a simple BankAccount class that implements the

 1 Create an interface as follows. public interface Printable { void

1 Create an interface as follows. public interface Printable { void printToConsole(Object x); void printToFile(Object x); 2 Create a simple BankAccount class that implements the printable interface. a. You mush implement the printToConsole() method. Bank Account Fields double balance; String account Number; Methods Constructor Sets all properties Yes, No setters Getters . public void deposit(double anount) public void withdraw(double amount) 1 Create a simple abstract class shape that implements the printable interface. 2 Create a circle class that extends the shape class. You must implement all the shape methods. You mush implement the printToConsole() method. . (For 1 Extra Point) implement the print ToFile() method 3 Create a Rectangle class that extends the shape class. You must implement all the shape methods. You mush implement the printToConsole() method. . (For the same 1 Extra Point) implement the printToFile() method

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!