Class extensions?

About Monkey 2 Forums Monkey 2 Programming Help Class extensions?

Tagged: 

This topic contains 2 replies, has 2 voices, and was last updated by  Ethernaut 2 years, 5 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #4829

    Ethernaut
    Participant

    Is there anything in particular I have to do in order to create class extensions, like this:

    I’m getting an error here, and get the same error on the blog example (which is a Canvas extension)

    And while I’m on that topic, trying to create a new class that extends the original results in the same error. Do I have to create the same New() overloads as the original? Can the new class simply use the Super.New( … ) overloaded methods automatically?

    Cheers.

    #4831

    Mark Sibly
    Keymaster

    I appear to have broken extensions…fix up at the ‘develop’ branch if you’re feeling brave. You’ll need to updatemx2cc.

    #4835

    Ethernaut
    Participant

    Just downloaded from the develop branch, and still get the same error.

    Thanks Mark!

    <edit> missed the updatemx2cc part, will try now.
    <edit2> works now. Thanks!

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.