Question Detail

How we can access data members using objects ?

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

1. Which variables cannot be declared ?

  • structure
  • pointer
  • class
  • void

2. Inheritance is transitive in nature.

  • True
  • False

3. << operator is ?

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

4. C++ is a ?

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

5. The advantage of declaring a virtual function as pure is
?

  • programs runs faster
  • early binding can be achieved
  • you force any derived class to define its own implementation
  • you can avoid making the class an abstract class
Read more from - C++ Programming Questions Answers - Set 2