Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
medrift's avatar
medrift
Honored Guest
12 years ago

Inheritance and operator overloading

With the following piece of code: #include<iostream> using namespace std; class base { public: base() {; } base operator+(base ob2) { base temp; return temp; } base operato...