Question
a.
Friend function can access public data members of the class.
b.
Friend function can access protected data members of the class.
c.
Friend function can access private data members of the class.
d.
All of the above.
Posted under Data Structures and Algorithms
Engage with the Community - Add Your Comment
Confused About the Answer? Ask for Details Here.
Know the Explanation? Add it Here.
Q. Which one of the following options is correct?
Similar Questions
Discover Related MCQs
Q. Which of the following statements is correct in C++?
View solution
Q. Which of the following is used to make an abstract class?
View solution
Q. Which of the following access specifier is used as a default in a class definition?
View solution
Q. What is correct about the static data member of a class?
View solution
Q. Which of the following provides a reuse mechanism?
View solution
Q. Which of the following statement is correct?
View solution
Q. First object oriented language 'Smalltalk' were first appeared in
View solution
Q. Complex real object contains
View solution
Q. Member function will access data and return the value to user when it is
View solution
Q. Language which is called pure object oriented language because everything in it is treated consistently as an object, from primitives such as characters and punctuation, all the way up to whole classes, prototypes, blocks, modules, etc. is
View solution
Q. In object oriented language, single unit which has data and its function is termed as
View solution
Q. Data in an object oriented language is safe from accidental alternation as it is
View solution
Q. If we want to read a data item in an object, member function in an object is
View solution
Q. Data encapsulation and data hiding are key features of
View solution
Q. Which of the following language designed mainly for object oriented programming, but with some procedural elements?
View solution
Q. Object oriented language has single unit which combines
View solution
Q. The wrapping of private data in classes in object-oriented programming languages is termed as
View solution
Q. In Smalltalk language, object functions are named as
View solution
Q. Sending a message to the object is referred to as
View solution
Q. Object provides an approach to program organization by helping to
View solution
Suggested Topics
Are you eager to expand your knowledge beyond Data Structures and Algorithms? 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!