+ 1
friend
is this 'obj' keyword? It has not declared yet...
5 Respuestas
+ 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")
+ 1
Obj is not a predefined keyword . Explain your question in detail wht u want to ask
0
I am talking about code in lesson friend second page
0
Its just variable name
"MyClass &obj" in this case is same as "int &a" in some other...