A function used to set or get the value of a private member variable is called an accessor.
- Hour 8. Creating Basic Classes
- from Sams Teach Yourself C++ in 24 Hours, fifth edition
- Publisher: Sams
- Released: April 2011
just like setter and getter in java bean.
Share this highlighthttp://www.safaribooksonline.com/a/sams-teach-yourself/70759/