download Mastguru Android App

Question Detail

Which of the following keywords are used to control access to a class member ?

  • protected
  • switch
  • goto
  • for
Similar Questions :

1. Can we define array of classes in c++ ?

  • Yes
  • No

2. Explicit call to a constructor means ?

  • Not providing the construction name at all
  • Is the shorthand method
  • Providing the constructor name explicitly to invoke it
  • Providing the constructor name implicitly to invoke it

3. What is actual syntax of destructor in c++ ?

  • !Classname( )
  • @Classname( )
  • $Classname( )
  • ~Classname( )

4. Size of a char is ?

  • 1
  • 2
  • 3
  • 4

5. The objects can directly access ?

  • Public members
  • Private members
  • Both of above
  • None of above
Read more from - C++ Programming Questions Answers - Set 2
Post a comment