Computer Science, asked by sandy2323998, 1 month ago

explain private proctored public variables with example. ​

Answers

Answered by XxInnocentPaglixX
0

Answer:

Public variables, are variables that are visible to all classes. Private variables, are variables that are visible only to the class to which they belong. Protected variables, are variables that are visible only to the class to which they belong, and any subclasses.

Answered by riya323190
0

Answer:

Public variables, are variables that are visible to all classes. Private variables, are variables that are visible only to the class to which they belong. Protected variables, are variables that are visible only to the class to which they belong, and any subclasses.

Similar questions