non-static method problem: how to access non-static method from another .java file?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • JosAH
    Recognized Expert MVP
    • Mar 2007
    • 11453

    #16
    Originally posted by r035198x
    Incompatible types: found TSDNAdminNonSil lyPerson required, SillyPerson (Jos)
    Duh:

    [code=java]
    public interface Defenestratable {
    public void defenestrate();
    }
    ...
    public class TSDNAdminNonSil lyPerson implements Defenestratable {
    ...
    }
    [/code]

    kind regards,

    Jos ;-)

    Comment

    • r035198x
      MVP
      • Sep 2006
      • 13225

      #17
      Originally posted by JosAH
      Duh:

      [code=java]
      public interface Defenestratable {
      public void defenestrate();
      }
      ...
      public class TSDNAdminNonSil lyPerson implements Defenestratable {
      ...
      }
      [/code]


      kind regards,

      Jos ;-)
      Argh, alright I give up. I'm cooked. There should not be allowed a reasonable implemention of the defenestrate method.
      Next time I'll choose the pink axe first ...

      Comment

      Working...