download Mastguru Android App

Question Detail

What is default visibility mode for members of classes in C++ ?

  • Private
  • Public
  • Protected
  • Depends
Similar Questions :

1. The members of a class are ?

b) by default are private
c) are made private by declaring as private
d) none of the above]

  • have no visibility by default
  • public by default
  • private by default
  • protected by default

2. A class having no public constructors is

  • A public protected class
  • A public class
  • A protected class
  • A private class

3. What is true about Constructor ?

  • Its name is plural of class name.
  • Its name has * symbol before it.
  • Its name is same as of class name.
  • Its name has # symbol before it.

4. 66. A constructor function is generally defined

  • In the private section of a class
  • In the public section of a class
  • In the protected section of a class
  • None of the above

5. What is data hiding ?

  • It is related with hiding internal object details
  • It is related with showing internal object details
  • It is related with datatypes
  • None of above
Read more from - C++ Programming Questions Answers - Set 2
Post a comment