Question Detail

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

  • protected
  • switch
  • goto
  • for
Similar Questions :

1. The antonym of constructor is ?

  • Creator
  • Distinct
  • Destroyer
  • Destructor

2. Inheritance is transitive in nature.

  • True
  • False

3. Which among following is correct way of declaring object of a class ?

  • Classname Objectname;
  • Class Classname Objectname;
  • Class Classname Object Objectname;
  • Classname Object Objectname;

4. What is purpose of abstract class ?

  • to provide help with database connectivity.
  • to provide data input to other classes.
  • to provide security to other classes.
  • to provide an appropriate base class from which other classes can inherit.

5. The derived class constructor

  • never passes any values to base class constructor
  • can pass arguments only to one base class constructor function
  • is responsible for passing the entire test of arguments needed by base class constructors
  • none of above
Read more from - C++ Programming Questions Answers - Set 2