Learn Java Programming - Interface Variables (Fields) Tutorial Java 8+

Publicado el: 19 agosto 2015
en el canal de: Daniel Ross
3,664
32

An interface may contain a very specific type of a variable. When a variable (field) is declared in an interface it essentially becomes an implicitly declared constant. Here are the rules that apply to a variable in an interface:
Interface variables must be initialized when they are declared.
Interface variable values cannot be changed after they are declared.
The only modifiers that can be explicitly applied to an interface variable are: public, static, or final.
All interface variables are implicity marked public, static, and final.
Don't be fooled by what appears to be Default (Package-Private) access, public is the only access modifier allowed and implicitly required.


En esta página del sitio puede ver el video en línea Learn Java Programming - Interface Variables (Fields) Tutorial Java 8+ de Duración hora minuto segunda en buena calidad , que subió el usuario Daniel Ross 19 agosto 2015, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 3,664 veces y le gustó 32 a los espectadores. Disfruta viendo!