Question Detail

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
Similar Questions :

1. An explicitly defined destructor function

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

2. Constructors has return type void ?

  • True
  • False

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

  • protected
  • switch
  • goto
  • for

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

5. Which among following is not a valid visibility mode in c++ program ?

  • Private
  • Public
  • Protected
  • Limited
Read more from - C++ Programming Questions Answers - Set 2