Question Detail

How we can define member function outside the class ?

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

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

  • Array
  • Reference variable
  • Object
  • File

2. What is data hiding ?

  • It is related with hiding internal object details
  • It is related with showing internal object details
  • It is related with datatypes
  • None of above

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

  • Private
  • Public
  • Protected
  • Limited

4. Enumerators are stored by the compiler in ?

  • string
  • integer
  • float
  • any of above

5. What is default visibility mode for members of classes in C++ ?

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