download Mastguru Android App

Question Detail

What is object in C++ ?

  • Object is part of syntax of a class.
  • Object is datatype of a class.
  • Object is an instance of a class.
  • Object is function of a class.
Similar Questions :

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

  • Classname Objectname;
  • Class Classname Objectname;
  • Class Classname Object Objectname;
  • Classname Object Objectname;

2. Which variables cannot be declared ?

  • structure
  • pointer
  • class
  • void

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

4. Only one copy of the class is inherited, when it is defined as ?

  • virtual
  • public
  • static
  • private

5. 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.
Read more from - C++ Programming Questions Answers - Set 2
Post a comment