what's the best way to answer the question:" what is the scope?"
I know that names are used to identify entities declared in the program like classes,method,variables,parameter,constructos,etc.Every declaration has a scope that is different. Do I need to specify the areas of a program where each declaration is contained or take only one example ? please advise,thanks
Not sure if this is the right explanation that you can give.
We can tell that as the "VISIBILITY OF THAT PARTICULAR VARIABLE/METHOD"
Hope we can also tell an example. Say you have an private variable[var1] sitting in a class1. That particular variable is visible only for that class1. For the other classes they wont even know that class1 has a variable named as var1.