- Joined
- Jul 19, 2024
- Messages
- 50
- Reaction score
- 18
- Points
- 8
I don't quite understand. Maybe it's because I'm still new.Whatever file you declared the SendBanPlayer function in...
You must declare it bellow(inside) the 'public:' statament , and not "private:"
He doesn't need to give u code he gave u the answer.I don't quite understand. Maybe it's because I'm still new.
Can you show me the code?
SendBanPlayer (....);
public
are accessible from anywhere in the program. This includes code outside the class, like other functions and objects.private
are only accessible within the class itself. Neither other functions nor other classes can access them directly.private
to hide data and force encapsulation, providing control over how and when class data is accessed or modified.protected
are similar to private
members, but they are also accessible in derived (child) classes.Thank you for elaborating on this for me.DPDatabaseClient.h
you are looking for:
you move it to a public place or you put " public: " in front and you put " private: " behind (not recommended)
Can't explain it to you better