download Mastguru Android App

Question Detail

How we can define member function outside the class ?

  • Using union
  • Using structure
  • Using pointers
  • Using scope resolution
Similar Questions :

1. Enumerators are stored by the compiler in ?

  • string
  • integer
  • float
  • any of above

2. Only one copy of the class is inherited, when it is defined as ?

  • virtual
  • public
  • static
  • private

3. Which of the following cannot be passed to a function ?

  • Array
  • Reference variable
  • Object
  • File

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
Post a comment