Methods visibility in interface

后端 未结 5 670
借酒劲吻你
借酒劲吻你 2020-12-15 15:16

Do all methods in an Interface has by default Public visibility mode?

5条回答
  •  悲&欢浪女
    2020-12-15 16:01

    Yes, all methods of an interface are public, and can't have any other access modifier (i.e. the default public access modifier is the only valid access modifier)

提交回复
热议问题