Solved Subclass-Method is not called

Discussion in 'Plugin Development' started by Flyverse, Sep 22, 2013.

Thread Status:
Not open for further replies.
  1. Offline

    Flyverse

    Hi!

    I tried to code some API for making arenas: But encountered a problem. I have a class "TeamArena", in wich there is a method "start". Then I have an class wich extends TeamArena, in wich a method like this is to be found:
    Code:
    @Override
    public void start(){
    super.start();
    here, some entities are spawned, + a debug message is logged
    }
    The "start" message from the subclass "TeamArena" is called. But not the start method from my class wich extends TeamArena! Why?

    Kindly regards

    Solved.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 4, 2016
  2. Offline

    waicool20

    make the superclass abstract maybe and remove the super.start()?

    a second too late :p

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 4, 2016
Thread Status:
Not open for further replies.

Share This Page