Answer the question
In order to leave comments, you need to log in
Do all fields of a class need to be encapsulated?
Hello.
The question is actually all in the title.
Let's say there is a Player class (pseudocode):
class Player {
string name;
int cash;
int level;
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question