0

what's wrong with this code?..t

The constructor and destructor are fine.. but I don't understand how I'm supp9sed to implement the the method https://code.sololearn.com/cw1rV5f7woGN/?ref=app

31st Dec 2021, 9:20 AM
Sheldon 10110
Sheldon 10110 - avatar
2 Answers
+ 2
You forgot the return type for the function hello(). The implementation (line 22) must match the declared signature (line 9) void MyClass :: hello(string name) // specify return type -> void
31st Dec 2021, 9:34 AM
Ipang
+ 1
Ipang thanks
31st Dec 2021, 10:01 AM
Sheldon 10110
Sheldon 10110 - avatar