1.

How many types of member functions are generally there in C++?(a) 2(b) 3(c) 4(d) 5I had been asked this question in a national level competition.My question is taken from Member Functions topic in portion Class Members & Types of Object Oriented Programming

Answer»

Correct CHOICE is (d) 5

Easy explanation - There are 5 TYPES of member functions that are generally provided in C++. NAMELY, SIMPLE, static, const, inline and friend member functions. Member functions are SPECIFIC to classes.



Discussion

No Comment Found

Related InterviewSolutions