Question Detail

Operator overloading is ?

  • giving new meaning to existing c++ operators
  • making c++ operators work with objects
  • giving c++ operators more than they can handle
  • making new c++ operators
Similar Questions :

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

2. What among following is a generic class ?

  • Function Template
  • Class Template
  • Inherited Template
  • None of above

3. How we can access data members using objects ?

  • object@datamember
  • object*datamember
  • object->datamember
  • object.datamember

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

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

5. How we can define member function outside the class ?

  • Using union
  • Using structure
  • Using pointers
  • Using scope resolution
Read more from - C++ Programming Questions Answers - Set 2