Computer Science, asked by Hriteeka368, 1 year ago

Which one is determines the extent to which variable or method can be accessed from another class?

Answers

Answered by kundanchandravanshi
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