如果我有一个实现多个监听器的类,可接受的间距是多少?
现在我正在这样做:
public class MyClass
implements interface1,
interface2,
interface3,
interface4,
interface5 {
最佳答案
我会选择:
public class MyClass implements Interface1, Interface2,
Interface3, Interface4, Interface5 {
这里,第二行有两个缩进。
只需确保组织中的每个人都使用相同的风格即可。
关于java - 缩进接口(interface)的多个实现的公认做法是什么,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37039587/