Default visibility mode is private - C++

Q.  C++: During a class inheritance in CPP, if the visibility mode or mode of derivation is not provided, then by default visibility mode is___________.

- Published on 29 Jun 15

a. public
b. protected
c. private
d. friend

ANSWER: private
 
The private keyword specifies that the members are accessible only from member functions and friends of the class.

Post your comment / Share knowledge


Enter the code shown above:

(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)