getter tag

2 questions


1 answers
111 views
0
While practicing classes in winapi, how do I export to the getter setter or change the value of the imported variable?

// Declare score variables in the Player classm_nScore;Player::Init(){ m_nScore = 0;}// Getter int GetPlayerScore() { return m_nScore; }// Dynamic Assignmentm_pObjects = new Objects;m_pObjects->Set...

2 years ago

2 answers
87 views
0
Why getter/setter/toString()?

What is the fundamental reason for gettingter/setter/toString()?

2 years ago

© 2024 OneMinuteCode. All rights reserved.