If a variable is declared as private, where may the variable be accessed?
Question
If a variable is declared as private, where may the variable be accessed?
Answer
A private variable may only be accessed within the class in which it is declared.
š² Practice Offline on Mobile: Download the free QA Automation & SDET Prep app on Google Play & App Store.