+ 1

friend

is this 'obj' keyword? It has not declared yet...

25th May 2020, 7:17 PM
Kumudu_Mohottala
Kumudu_Mohottala - avatar
5 Respostas
+ 1
"MyClass obj" is practicly the same as "int a" You can write everything instead of 'obj'. Examples: MyClass a, MyClass b, MyClass hello The name is just like a "variable" name but in this case it's an "object" name. (That's why they chose 'obj'->"object")
26th May 2020, 7:51 AM
Armin Schneider
Armin Schneider - avatar
+ 1
Obj is not a predefined keyword . Explain your question in detail wht u want to ask
27th May 2020, 5:06 PM
A S Raghuvanshi
A S Raghuvanshi - avatar
0
I am talking about code in lesson friend second page
25th May 2020, 7:25 PM
Kumudu_Mohottala
Kumudu_Mohottala - avatar
25th May 2020, 7:31 PM
Kumudu_Mohottala
Kumudu_Mohottala - avatar
0
Its just variable name "MyClass &obj" in this case is same as "int &a" in some other...
25th May 2020, 8:36 PM
Uros Zivkovic
Uros Zivkovic - avatar