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

7th Dec 2018, 11:29 PM
0_Effort
0_Effort - avatar
1 Antwort
+ 4
Hey, try Monster1.sayHi(); make sure you have created a instance of class Monster1
7th Dec 2018, 11:31 PM
D_Stark
D_Stark - avatar