How to expose a method in an interface without making it public to all classes

前端 未结 5 631
无人共我
无人共我 2021-01-19 18:01

I have a issue where I\'m working with a particular interface for quite a lot of things. However, I have a particular method that I want to be available only to a particular

5条回答
  •  终归单人心
    2021-01-19 18:16

    Answer: Define two interfaces, and keep the 'private' functions in the second interface. If ActionScript supports inheritance for interfaces, then define the 'private' interface as extending the 'public' interface.

提交回复
热议问题