0
operator overloading
how can i overload " >> " operator to assign a object of a class to the object of other class?
1 ответ
0
class1 operator>>(const class1& a const, class2& b) { ... }
You should use this as class1instance >> class2instance
how can i overload " >> " operator to assign a object of a class to the object of other class?