|
|
||||||||
|
||||||||
|
||||||||
|
|
|
| A common question among newer Object-Oriented Programmers is "Why should I use and prefer to use getter and setter methods for my objects variables when I can simply set them as public?" For example, let's consider the trivial object below: | ![]() |
| |
|
• Discuss Tutorial
• Comment On Tutorial |
• View Tutorial
• Report Broken Link |
|
|