download Mastguru Android App

Question Detail

The objects can directly access ?

  • Public members
  • Private members
  • Both of above
  • None of above
Similar Questions :

1. How we can define member function outside the class ?

  • Using union
  • Using structure
  • Using pointers
  • Using scope resolution

2. int *ptr[5];

  • a pointer of 5 int elements
  • an array of 5 int pointers
  • an array of 5 elements returning an int value
  • none of above

3. The default visibility mode while inheriting is ?

  • public
  • protected
  • private
  • may be any of above

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

  • Yes
  • No

5. A class having no public constructors is

  • A public protected class
  • A public class
  • A protected class
  • A private class
Read more from - C++ Programming Questions Answers - Set 2
Post a comment