class with Interface and super class cant have shared method name

About Monkey 2 Forums Monkey 2 Development class with Interface and super class cant have shared method name

This topic contains 3 replies, has 2 voices, and was last updated by  nerobot 2 years, 4 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #5419

    skn3
    Participant

    This illustrates the issue.

    [/crayon]

    Now I can always make Base Implement Entity, but if I am using a Class from some other module then I don’t have access to this. I cant override the method in Item because the method is not declared virtual in Base.

    It would be nice if interfaces treated super methods as implementation.

    #5423

    nerobot
    Participant

    I think you should implement interface for Base. Then your methods in Base will be default realization of interface ones.

    #5433

    skn3
    Participant

    But check my description in OP. What if Base is in a module that I don’t own. For example the Resource module.

    #5434

    nerobot
    Participant

    We need to know how it works in other langs. I don’t know.

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

You must be logged in to reply to this topic.