문제

I need a variable that represents an interface. I was wondering if there is a "standard" name for such a variable, like for example the clazz for a Class variable. I was thinking of naming it aInterface, but I don't realy like this name...

도움이 되었습니까?

해결책

In general my interface names start with I, like, IMyInterface. And I use 'i' as prefix for variable name where I need to indicate the variable is interface, like iMyInterfaceVar. But no such restriction or standard rule.

Just for sake of completeness, here is The Java Code Convention Guide

다른 팁

In the lines of clazz, you could use interfaze!

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top