Question Detail

How we can access data members using objects ?

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

1. Data members and member functions are enclosed within ?

  • union
  • structure
  • class
  • array

2. Which of the following keywords are used to control access to a class member ?

  • protected
  • switch
  • goto
  • for

3. Stacks are based on ?

  • FIFO
  • LIFO
  • FILO
  • All of above

4. && means ?

  • Logical OR
  • Bitwise OR
  • Logical AND
  • Bitwise AND

5. The private data members of a class are accessible ?

  • Directly to objects of that class
  • To any function defined outside a class
  • Only to the member functions
  • Only using keyword static
Read more from - C++ Programming Questions Answers - Set 2