Inheritance | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Inheritance

If i have multiple overloaded operators in my base class, will all except = be inherited in my derived class? or none will be inherited?

29th May 2021, 7:33 AM
Mihail
Mihail - avatar
2 Answers
+ 3
They will be inherited since operator overloading is just a fancy function.
29th May 2021, 7:51 AM
你知道規則,我也是
你知道規則,我也是 - avatar
0
thanks
29th May 2021, 7:58 AM
Mihail
Mihail - avatar