Sail E0 Webinar
Question

How to declare operator function?


Options:
A .  operator operator sign
B .  operator
C .  operator sign
D .  None of the mentioned
Answer: Option A

We have to declare the operator function by using operator, operator
sign. Example "operator +"

where operator is a keyword and + is the
symbol need to be overloaded.



Was this answer helpful ?
Next Question

Submit Solution

Your email address will not be published. Required fields are marked *

Latest Videos

Latest Test Papers