Which one is determines the extent to which variable or method can be accessed from another class?
Answers
Answered by
0
In java a class can have two type of member variables
1) instance variables - they are created with every object of that class, and can be access by object of that class.
2) class variables - they are belongs to class means each and every object can share same variable and can be access by class name
Similar questions
Math,
6 months ago
Math,
6 months ago
Accountancy,
6 months ago
English,
1 year ago
Math,
1 year ago