ابدأ بالتواصل مع الأشخاص وتبادل معارفك المهنية

أنشئ حسابًا أو سجّل الدخول للانضمام إلى مجتمعك المهني.

متابعة

What is an accessor?

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

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

Gayasuddin Mohammed
من قبل 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
من قبل 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
من قبل 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.