Which type of function is not a member of a class, but can access its private members?
کس قسم کا فنکشن کلاس کا ممبر نہیں ہے، لیکن اس کے پرائیویٹ ممبرز تک رسائی حاصل کر سکتا ہے؟
- static
- friend
- constructor
- destructior
Explanation
A friend function can access the private and protected data of a class.
Related MCQs
گوگل کا بانی کون ہے؟
- Sergen Brin
- Larry Page
- Steve Jobs
- Both A & B
اس سوال کو وضاحت کے ساتھ پڑھیں
مندرجہ ذیل میں سے کلاؤڈ اسٹوریج سروس کی مثال کون سی ہے؟
- Skype
- Dropbox
- Internet Explorer
- Mozilla Firefox
اس سوال کو وضاحت کے ساتھ پڑھیں
ویب براؤزر کا کام کیا ہے؟
- Manage operating system updates
- View and interact with web content
- Encrypt system files
- None of these
اس سوال کو وضاحت کے ساتھ پڑھیں
انٹرنیٹ کیا ہے؟
- Interconnection of wide area networks
- A single network
- A collection of unrelated computers
- None of these
اس سوال کو وضاحت کے ساتھ پڑھیں
جنک ای میل کا دوسرا نام کیا ہے؟
- Spoof
- Spill
- Spam
- Spat