क्या जावा आंतरिक कक्षा के भीतर से this
का संदर्भ प्राप्त करना संभव है?बाहरी वर्ग के "इस" को आंतरिक कक्षा से कैसे पहुंचाया जा सकता है?
यानी
class Outer {
void aMethod() {
NewClass newClass = new NewClass() {
void bMethod() {
// How to I get access to "this" (pointing to outer) from here?
}
};
}
}