Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在阅读一个关于finalJava 的示例,并看到了这样的内容:
final
Counter c = new Counter() { public int count() { super.count(); return super.count(); } } c.count(); // now count 2
这种结构有名称吗?这曾经在实践中使用过吗?是的,它被认为是一个好的OOD?参考或博客文章将不胜感激。