download Mastguru Android App

Question Detail

The default visibility mode while inheriting is ?

  • public
  • protected
  • private
  • may be any of above
Similar Questions :

1. What among following is a generic class ?

  • Function Template
  • Class Template
  • Inherited Template
  • None of above

2. 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

3. An explicitly defined destructor function

  • may be virtual
  • may not be virtual
  • will always be virtual
  • will never be virtual

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

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

5. 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
Read more from - C++ Programming Questions Answers - Set 2
Post a comment