Question Detail

The objects can directly access ?

  • Public members
  • Private members
  • Both of above
  • None of above
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. 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. C++ is a ?

  • Procedural programming language
  • Structural programming language
  • Low level language
  • Object oriented programming language

4. A class having no public constructors is

  • A public protected class
  • A public class
  • A protected class
  • A private class

5. What is class in c++ ?

  • When you define a class, you define a blueprint for a data type.
  • When you define a class, you make get more funtionality.
  • When you define a class, you define the logic.
  • When you define a class, you make debugging.
Read more from - C++ Programming Questions Answers - Set 2