java - Variables in Interface -


Why is a variable used in an interface public position last? Why specifically "stable"?

The area declared in an interface can only be static anyway, so why it depends on that example Is that you use to access it?

Entering a field in the interface is often bad style these days. Interface means reflecting the abilities of those classes that implement it - which is completely orthogonal for the idea of ​​a continuous one. Definitely a dirty idea to use an interface just is a bunch of constants. For example, the filtering interface can contain the fields "ALLOW_ALL" and "ALLOW_NONE". I

I think you can do I in a scenario that implements an interface conceive actually add an insensate field to your class - but not only can it be publicly referenced in public, but rather by specifying its part, implementation rather than APIs.


Comments

Popular posts from this blog

c# - How to capture HTTP packet with SharpPcap -

php - Multiple Select with Explode: only returns the word "Array" -

jquery - SimpleModal Confirm fails to submit form -