Sesiones de PyR
Python func res
-2 Votos
1 RespuestaShould I continue ?
1 Voto
2 Respuestascan anyone plz explain me this program step by step?#include <iostream>
using namespace std;
class MyClass {
public:
int var;
MyClass() { }
MyClass(int a)
: var(a) { }
MyClass operator+(MyClass &obj) {
MyClass res;
res.var= this->var+obj.var;
return res;
}
};
int main() {
MyClass obj1(12), obj2(55);
MyClass res = obj1+obj2;
cout << res.var;
}I am not getting the part inside operator+
0 Votos
8 Respuestasexplanation plzzzz!!!
0 Votos
2 RespuestasEn tendencia hoy
Pull resistors
3 Votes
AI video creation
3 Votes
Sololearn chat en Español
1 Votes
I'm confuse with this \n
1 Votes
How to make a game code
0 Votes
How to add image and audio
1 Votes
About create tuples [Solved]
0 Votes
Headless CMS
1 Votes
Missing]
0 Votes
HTML
0 Votes