Return Object
Return Object
You will implement a simple class for managing customer information. You will create a
Customer class with various member functions, and practice returning objects by value from a
function. The goal is to return a new Customer object with updated information based on input
values.
Instructions:
o The Customer class should have the following private member variables:
▪ name (string)
▪ id (integer)
▪ balance (double)
2. Constructor:
o Write a constructor to initialize the name, id, and balance when a Customer
object is created.
3. Display Function:
o Implement a member function display() that prints the name, id, and balance of
the customer to the console.
▪ Creates and returns a new Customer object with these updated values.