@MustOverride annotation?

后端 未结 7 1011
悲&欢浪女
悲&欢浪女 2021-02-12 22:40

In .NET, one can specify a \"mustoverride\" attribute to a method in a particular superclass to ensure that subclasses override that particular method. I was wondering whether

7条回答
  •  逝去的感伤
    2021-02-12 23:09

    Android has a new annotation out as announced in the Google I/O 2015: @callSuper

    More details here: http://tools.android.com/tech-docs/support-annotations

提交回复
热议问题