Question: please follow the steps and write this program in java public class client ( private string lastName; private string firstNane; foo This constructor sets the


public class client ( private string lastName; private string firstNane; foo This constructor sets the stanting balance at 8.8. =7 public client(String n, string f ) f lastName = n; firstName =f; 7 I/step 1: A copy constructor that copies one client object to another. //step3: tostring():String \} public class BankAccount f private int accountNumber; private char type; private double balance; // Account balance //step4: declare a private Client object named client. step 5:write a constructor which accepts four parameters to initialize client, accountNumber, type, and balance % public void deposit(double b) \{ balance += b; \} public void withdraw(double anount) \{ balance = anount; public double getBalance() \{ return balance; \} public void setBalance(double b) \{ balance =b; \} public void setAccountNumber(int a) \{ accountNumber=a; \} \{ public int getAccountNumber() return accountNumber; //step 6: write getClient(): CLient. using deep copy (namely copy constructor) //step7: setClient(n:Client):void. using deep copy //step8: getType():char //step 9: setType (char c):void //step 10: toString():String
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
