0
C++ classes
Explain why a class might provide a set function and a get function for a data member.
2 Answers
0
one example is having a class for customers. you might have data like name, address, phone number, etc. later on you might need to get the data, or you might need to set the data to something else, like adding info about a purchase.
does that answer?
- 1
it does thank you :)