Question: 3. Develop a class Customer which contains data member: customerName, phone, balance, simType, and internetBalance. Implement necessary methods to set the value of each
3. Develop a class Customer which contains data member: customerName, phone, balance, simType, and internetBalance. Implement necessary methods to set the value of each variables. Now design another class called offer that contains a function calculateOffer () which takes an object of class customer as a parameter and provides offer to the customer depending on the following criteria: i. If the customer is Robi user add 50MB to his internetBalance ii. If the customer is Airtel user provides 10% cash on his balance
Step by Step Solution
There are 3 Steps involved in it
Based on the question provided you are asked to develop two classes in a programming language which is not specified but Ill assume youre using a lang... View full answer
Get step-by-step solutions from verified subject matter experts
