Question Detail

How we can define member function outside the class ?

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

1. Explicit call to a constructor means ?

  • Not providing the construction name at all
  • Is the shorthand method
  • Providing the constructor name explicitly to invoke it
  • Providing the constructor name implicitly to invoke it

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

3. Inheritance is referred to as

  • “is a” relationship
  • "have a" relationship
  • both of above
  • none of above

4. What is true about Constructor ?

  • Its name is plural of class name.
  • Its name has * symbol before it.
  • Its name is same as of class name.
  • Its name has # symbol before it.

5. Data members and member functions are enclosed within ?

  • union
  • structure
  • class
  • array
Read more from - C++ Programming Questions Answers - Set 2