Question: Part # 2 : Next build an Account class. Call the file Account java and the class inside the file Account. ( No try /

Part #2: Next build an Account class. Call the file Account java and the class inside the file Account. (No try/catch blocks needed for this class....we will add them next week)
The Account class should have:
3 Properties: Balance, Owner and AcctNo.
2 constructors: one that takes all 3 properties and one that takes no args(the default).
The Account class should have set and get methods as well as deposit and withdraw methods. Also include a displavo method that outputs AcctNs. Owner and Balance.
Use a main method to test out this class.
Use the following code, in the main method, to test the Account class?
Account a1.
a1= new Account(2222, "Frank", 1000);
a1. deposit (100.00)
a1. display();
 Part #2: Next build an Account class. Call the file Account

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!