0
Why cant i call a method wothout pointer?
I create a class and than object but when i try to run method insode a object (Monster1.sayHi) it gives me error: Monster::sayHi: non standard syntax; use & to create a pointer to member
1 Answer
+ 4
Hey, try
Monster1.sayHi();
make sure you have created a instance of class Monster1