An accessor method is a method that fetches private data that is stored within an object. An accessor provides the means by which to obtain the state of an object from other program parts.
Interviews3 answers
3 Answers
Mahesh SanikaPosted Dec 1, 2019, 11:50 PM EST
An accessor is used to return the value of a private field
Keerthi VenkatesanPosted May 18, 2016, 1:52 AM EDT
An accessor is a class operation that does not modify the state of an object. The accessor functions need to be declared as const operations.
rajkumarPosted Jul 12, 2006, 8:36 PM EDT
