Question Detail

Which among following is correct way of declaring object of a class ?

  • Classname Objectname;
  • Class Classname Objectname;
  • Class Classname Object Objectname;
  • Classname Object Objectname;
Similar Questions :

1. << operator is ?

  • stream extraction operator
  • stream insertion operator
  • left shift operator
  • right shift operator

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. Enumerators are stored by the compiler in ?

  • string
  • integer
  • float
  • any of above

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

5. When one class inherits from the base class, then the original class is called ?

  • derived class
  • base class
  • sub class
  • basic class
Read more from - C++ Programming Questions Answers - Set 2