I want this to be an instance of an outer class of an inner class. I was originally going to use 'this' in innerclass. I realized I should not be trying to use 'this'. 'this' is mean innerclass-instance, not outclass-instance... What should I do?
            Asked
            
        
        
            Active
            
        
            Viewed 98 times
        
    0
            
            
        - 
                    `OuterClassName.this` – Boris the Spider Nov 25 '17 at 20:19
- 
                    add some code, otherwise it's hard to understand your question. – wake-0 Nov 25 '17 at 20:19
1 Answers
1
            
            
        You use something like
Outerclass.this
for example. That allows you to denote elements of the enclosing outer class (assuming that the inner class is not static).
 
    
    
        GhostCat
        
- 137,827
- 25
- 176
- 248
