Jump to content

My node class! everything looks clean but not start -_-


TheGreatests

Recommended Posts

Override is needed because those methods are abstract methods in the Script class.

 

The override annotation is entirely optional.

 

 

 

The runnable scripts inherit Script class, without override when onStart/onLoop/etc. is called from the super class it is not able to be called in the inherited class because the abstract method wasn't overriden.

 

Wrong.

 

All the override annotation does is bring more clarity to your code and add a compile-time check  that verifies whether the annotated method is actually overriding.

But the method will still be overridden, even if it's not there :)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...