114. Operator Overloading-II

Question.1

A developer tries to overload the following operators:

class Reg {
public:
   void operator.(Reg& r);   // dot
   void operator::(int n);   // scope resolution
   void operator?:(int a, int b); // ternary
};

Will any of these compile?

Need Help? Refer to the Quick Guide below

Select Answer