英文:
Meaning of the prefix I in Java-Classnames
问题
在浏览一些Java代码仓库时,我偶然发现了一些类名以前缀'I'开头。
例如,我发现了类名'IPlayer',但我无法弄清楚这个'I'是什么意思。
英文:
While browsing some java-repositories I stumbled upon Class which had the Prefix I
to their names.
For example i found the class IPlayer
and i could not figgure out what this I shall mean.
答案1
得分: 5
这是一些人用来命名接口的命名约定。IPlayer
意味着 Player 的接口。I 代表 Interface。
英文:
This is a naming convention some people use to name interfaces. IPlayer
means interface for Player. I stands for Interface
答案2
得分: 0
这意味着这个类是一个接口。这是用于此标识的约定。
英文:
This means that this class is an interface. It is a convention used for this identification.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论