hi everybody,
i would be glad if someone could show me how the Get and Set functions work.
thanks.
rayy
0
Unverified User
Recommended Answers
Jump to PostGet and set functions are just a public interface for getting read/write access to private data members:
#include <iostream> class EdRules { bool _isEdAwesome; public: EdRules(): _isEdAwesome(true) {} // Get function, gives read access to _isEdAwesome bool IsEdAwesome() const { return _isEdAwesome; } // Set function, gives …
All 4 Replies
Radical Edward
301
Posting Pro
rayy
0
Unverified User
Radical Edward
301
Posting Pro
promod
0
Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.