Object Oriented Programming Concepts
Which type of function is not a member of a class, but can access its private members?
کس قسم کا فنکشن کلاس کا ممبر نہیں ہے، لیکن اس کے پرائیویٹ ممبرز تک رسائی حاصل کر سکتا ہے؟
Answer: friend
Explanation
A friend function can access the private and protected data of a class.
This question appeared in
Past Papers (2 times)
Computer Operator Past Papers (1 times)
ETEA Past Papers (1 times)
This question appeared in
Subjects (1 times)
COMPUTER (1 times)
Related MCQs
- A class of random access memory that requires periodic servicing in order for, the contents to remain valid is?
- An ASF member shall prevent all persons and vehicles from access to the air side or other areas important to the security of the aerodromes or airports .
- Which of the following members of the class Arachnida are primary parasitic?
- Which of the following is not a type of MS Access database object?
- In Access, which data type is used for "quantity"?
- Which of the following is the default data type in MS Access?
- What type of memory does the CPU directly access?
- Team members are accountable to ensure that whether each member performs their duties or not.
- In August 2023, the five-member BRICS invited how many new members to join the alliance?
- Which data type allows alphanumeric characters and special symbols in MS-Access?