- Create a class called Record that financial institute might use to represent their customer's record. This class should include one data member of type int to represent the account balance.
Provide a constructor that receives an initial balance and uses it to initialize the data member. The constructor should validate the initial balance to ensure that it is greater than or equal to 0. If not, the balance should be set to 0 and the constructor should display an error message indicating that INVALID BALANCE.
The class should provide three member functions.
-Member function add, should add an amount to the balance.
-Member function deduct, should deduct money from the account and ensure that the deduction amount does not exceed the account's balance. If it does, the balance should be left unchanged and the function should print a message indicating "Deduct amount exceeded".
-Member function getBalance should return the current balance.
Write a main program that creates one Record object and tests the member funtions of class Record.