Variable named interface

I need a variable representing an interface. I was wondering if there is a β€œstandard” name for such a variable, for example, clazz for the Class variable. I thought to call it aInterface, but I do not really like this name ...

+4
source share
2 answers

In general, interface names begin with I, for example, IMyInterface . And I use "i" as a prefix for the variable name, where I need to indicate that the variable is an interface, for example iMyInterfaceVar . But there is no such restriction or standard rule.

For completeness only, here 's the Java Code Guide

+2
source

In clazz strings you can use interfaze !

+5
source

Source: https://habr.com/ru/post/1397391/


All Articles