Question Detail

How we can access data members using objects ?

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

1. Among following which will give the size of object or type ?

  • Calloc
  • Malloc
  • Sizeof
  • Realloc

2. What is actual syntax of destructor in c++ ?

  • !Classname( )
  • @Classname( )
  • $Classname( )
  • ~Classname( )

3. Inheritance is transitive in nature.

  • True
  • False

4. What is default scope for a structure ?

  • Private
  • Protected
  • Public
  • None of aobve

5. Can we define array of classes in c++ ?

  • Yes
  • No
Read more from - C++ Programming Questions Answers - Set 2