Question
a.
Friend class can access all the private members of the class, of which it is a friend
b.
Friend class can only access protected members of the class, of which it is a friend
c.
Friend class don’t have any implementation
d.
Friend class can’t access any data member of another class but can use it’s methods
Posted under Object Oriented Programming
Engage with the Community - Add Your Comment
Confused About the Answer? Ask for Details Here.
Know the Explanation? Add it Here.
Q. Which of the following describes a friend class?
Similar Questions
Discover Related MCQs
Q. What is scope of a class nested inside another class?
View solution
Q. State True or False. Class with main() function can be inherited.
View solution
Q. Which among the following is false, for member function of a class?
View solution
Q. Which syntax for class definition is wrong?
View solution
Q. Which of the following pairs are similar?
View solution
Q. Which among the following is false for class features?
View solution
Q. Instance of which type of class can’t be created?
View solution
Q. Which definition best describes an object?
View solution
Q. How many objects can be declared of a specific class in a single program?
View solution
Q. Which among the following is false?
View solution
Q. Which of the following is incorrect?
View solution
Q. The object can’t be:
View solution
Q. What is size of the object of following class (64 bit system)?
class student { int rollno; char name[20]; static int studentno; };
View solution
Q. Functions can’t return objects. State True or False.
View solution
Q. How members of an object are accessed?
View solution
Q. If a local class is defined in a function, which of the following is true for an object of that class?
View solution
Q. Which among the following is wrong?
View solution
Q. Object declared in main() function:
View solution
Q. When an object is returned___________
View solution
Q. Which among the following is correct?
View solution
Suggested Topics
Are you eager to expand your knowledge beyond Object Oriented Programming? We've curated a selection of related categories that you might find intriguing.
Click on the categories below to discover a wealth of MCQs and enrich your understanding of Computer Science. Happy exploring!