Java - Encapsulation
Which of the following is the correct syntax to provide access to a private variable age in a class?
Which of the following is the correct syntax to provide access to a private variable age in a class?
15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions