Operator Overloading Quiz- Quiz Explanation

Which operators can be overloaded? - Quiz Explanation

The correct answers are indicated below, along with text that explains the correct answers.

 
1. Which one of the following operators can be overloaded?
  A. ::
  B. new
  C. .*
  D. sizeof
  The correct answer is B.
The scope resolution operator, the member object selector operator, and the sizeof operator cannot be overloaded.

2. Which one of the following operators cannot be overloaded?
  A. the function call ( )
  B. +=
  C. >>
  D. ?:
  The correct answer is D.
The ternary conditional expression operator ?: cannot be overloaded.
Arithmetic and assignment operators can be overloaded, as can the function call ( ).

3. RunTime Polymorphism is achieved by
  A. friend function
  B. virtual function
  C. operator overloading
  D. function overloading
  The correct answer is B. The virtual function enables runtime polymorphsim.