0
In which line is the object named 'test', at 'BankAccount test;' or at 'test.sayHi();'?
int main() { BankAccount test; test.sayHi(); }
2 Antworten
+ 2
Maybe I get the question wrong, but "BankAccount test" basically says "Create an object of type 'BankAccount' which will be named 'test'"
Let me know if this answers your question.
+ 8
you could say "test" is the object but really its just a reference to were the object is in memory
Object.methods()