A member function of a class should be made private
A) always
B) only if it will never be used
C) if it will only be used by other members of the class
D) never, it is illegal to make a member function private.
Correct Answer:
Verified
Q19: A class member function may be private.
Q20: Class data members are almost always public.
Q21: In the following class constructor definition, the
Q22: What is wrong with the following structure
Q23: If you have a class with a
Q25: A class in which modifications to the
Q26: A member function that gets called automatically
Q27: In a structure definition, the identifiers declared
Q28: Given the following strucure definitions, what is
Q29: C++11 allows you to have a constructor
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents