replaced http://codereview.stackexchange.com/ with https://codereview.stackexchange.com/
After changing all variables in this code from public
to private
and adding get
/set
according to the need to get modified and/or read in another class, I'd like to know if this was done correctly.
After changing all variables in this code from public
to private
and adding get
/set
according to the need to get modified and/or read in another class, I'd like to know if this was done correctly.
Encapsulation, Fieldsfields and Propertiesproperties for Asteroid class
Mathieu Guindon
- 75.5k
- 18
- 194
- 467
Is this class correctly set up? - regarding private/public & get/set Encapsulation, Fields and Properties
Loading
Loading
Loading
lang-cs