Start networking and exchanging professional insights

Register now or log in to join your professional community.

Follow

What is an accessor?

user-image
Question added by Emad Mohammed said abdalla , ERP & IT Software, operation general manager . , AL DOHA Company
Date Posted: 2015/07/31
Mohammad Basheer abu ahmad
by Mohammad Basheer abu ahmad , مشرف كمبيوتر ، الإشراف على الموظفين , قطاع عام

An accessor (In programming) is a method that fetches private data that stored within an object

Gayasuddin Mohammed
by Gayasuddin Mohammed , Advocate , Practicing Law before High Court at Hyderabad

Public data member can be easily accessed using the direct member access (.) operator with the object of that class unlike private data member's which need a public member function to access or initialization of the private data member's in the class. 

Those public member functions are also called Accessors.

Emad Mohammed said abdalla
by Emad Mohammed said abdalla , ERP & IT Software, operation general manager . , AL DOHA Company

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 

MUHAMMAD AYAZ KHAN
by MUHAMMAD AYAZ KHAN , Web developer , NTS

Find the successor of12 . Say1,2,3,4,5,6,7,8,9,10,11,12 and then the next number is13 so13 is the successor of12.