Question Detail

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

  • protected
  • switch
  • goto
  • for
Similar Questions :

1. Which variables cannot be declared ?

  • structure
  • pointer
  • class
  • void

2. The objects can directly access ?

  • Public members
  • Private members
  • Both of above
  • None of above

3. The major goal of inheritance in C++ is ?

  • To facilitate the reusability of code
  • To help modular programming
  • To facilitate the conversion of data types
  • To extend the capabilities of a class

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

  • Yes
  • No

5. The antonym of constructor is ?

  • Creator
  • Distinct
  • Destroyer
  • Destructor
Read more from - C++ Programming Questions Answers - Set 2