What is a member variable?
Advertisements
प्रश्न
What is a member variable?
लघु उत्तरीय
Advertisements
उत्तर
A member variable in Java is a variable declared inside a class but outside any method, constructor, or block. It is used to store data related to the class or its objects. Member variables can be instance variables or static (class) variables, depending on whether they are declared with the static keyword.
shaalaa.com
क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
