download Mastguru Android App

Question Detail

How we can access data members using objects ?

  • object@datamember
  • object*datamember
  • object->datamember
  • object.datamember
Similar Questions :

1. & operator is ?

  • address operator
  • indirection operator
  • logical and
  • logical or

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

  • virtual
  • public
  • static
  • private

3. The objects can directly access ?

  • Public members
  • Private members
  • Both of above
  • None of above

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

5. When a derived class inherits from many base classes, this process is known as ?

  • multiple inheritance
  • multilevel inheritance
  • default inheritance
  • multiplex inheritance
Read more from - C++ Programming Questions Answers - Set 2
Post a comment