Question: java Dject: Student Account Class . . blem Description: (The Account class) Design a class named Account that contains: A private String data field named
Dject: Student Account Class . . blem Description: (The Account class) Design a class named Account that contains: A private String data field named id for the account (default "0000000 A private double data field named balance for the account (default 0.0 A private String data field named name that stores the student's full n A private String data field named address that stores the student's home A no-arg constructor that creates a defaylt Account. A constructor that creates an Account with the specified id, initial bala The getter and setter methods for balance. A method named withdraw that withdraws (subtracts) a specified amount fror A method named deposit that deposits (adds) a specified amount to the bala A method named clear that clears the balance (sets it to 0.0). . . . . Write a test program that creates an Account object with an account ID of o "John Doe", and an address of your choice. Use the withdraw method to withdraw $4.50, use the deposit method to deposit the balance back to 0.0. Use the getter for your balance field to print this balance value after objec- after the deposit. Submit the following items to D2L (I suggest zipping the files together): 1. The JAVA files for each class in your program. This particular program should have just one JAVA file
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
