关于如何命名你的接口有什么约定吗?我指的不是实现,而是接口!
后缀'-able‘是怎么回事?比如Runnable,Closeable,Serializable?什么时候使用这个?
Runnable
Closeable
Serializable
发布于 2014-03-23 21:38:07
Java语言中一种常见的设计模式是给接口起一个非常基本的名字,比如Graph,然后给实现加上后缀Impl,比如GraphImpl。
Graph
Impl
GraphImpl
https://stackoverflow.com/questions/22591596
相似问题