I'm not sure if my question title describes my situation aptly, so my apologies if it doesn't! Anyway, let's say I have the following code snippet (visibility is as stated):

```
public class ChildClass extends ParentClass {
    // more code
   private void myMethod() {
      MyClass mine = new MyClass() {
         public void anotherMethod() {
            // insert code to access a method in ParentClass
         }
      };
   }
}

```

Is it possible for code within anotherMethod() to access a protected method found in ParentClass? If so, how can this be done?

I've tried something like...

```
(ParentClass.this).parentMethod();

```

...but obviously it doesn't work due to scope issues.