有没有一种经过批准的方法,可以根据Java类的功能进行分类?

huangapple 未分类评论51阅读模式
英文:

Is there an approved way to classificate Java-Classes based on their functionalities?

问题

有些类只是为了创建新类型的对象,
其他类只是为了创建新方法,
还有些两者兼而有之,
另外一些是其他的组合,等等。

是否有一种经过批准的方法,一种经过批准的方式来根据它们的功能对Java类进行分类呢?

英文:

Some Classes are made just to create new kinds of objects,
others are made just to create new methods,
others both,
other.. etc.

Is there an approved method, an approved way to classificate Java-Classes based on their functionalities?

答案1

得分: 0

是的。看一下 Java 设计模式。对象的创建属于创建型模式。

示例参考:https://refactoring.guru/design-patterns/java

英文:

Yes. Have a look at Java design patterns. Object creation falls under Creational Patterns.

Sample reference: https://refactoring.guru/design-patterns/java

huangapple
  • 本文由 发表于 2020年4月3日 19:34:48
  • 转载请务必保留本文链接:https://java.coder-hub.com/61010965.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定