How can i access EditText variable of another class in another class without extend | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How can i access EditText variable of another class in another class without extend

How can I access variable of any other class by any class

16th Oct 2019, 11:05 AM
Devanshu Pathsariya
Devanshu Pathsariya - avatar
3 Answers
0
I'm guessing you're talking about JavaScript. Please use relevant tags in your post, and include languahes that you're asking about, so people can find your question when they search.
16th Oct 2019, 12:11 PM
Aymane Boukrouh
Aymane Boukrouh - avatar
0
I am talking about java
16th Oct 2019, 6:45 PM
Devanshu Pathsariya
Devanshu Pathsariya - avatar
0
As I understand it, to make a class member "visible" to other classes, the member need to have 'public' access specifier in the member's declaration.
17th Oct 2019, 8:07 AM
Ipang