In class a which extends MainScreen, I want to call b class which extends MainScreen also.
When I pass b.this into a function error shown No enclosing instance of the type b is accessible in
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Hi this is Very simple I will tell you simple way
Suppose you have two classes
1)screen1
2)screen2
screen1.java
screen2.java
Here you can use that screen1Object