This site requires JavaScript, please enable it in your browser!
Greenfoot back
bentondecusin
bentondecusin wrote ...

2018/10/30

What does "final" mean

bentondecusin bentondecusin

2018/10/30

#
private static final Color transparent = new Color(0,0,0,0);
danpost danpost

2018/10/30

#
bentondecusin wrote...
private static final Color transparent = new Color(0,0,0,0);
The final keyword is used to indicate that the value or object assignment is not allowed to change. The assigned value is a constant or the object is permanently assigned. If an attempt is made to make a re-assignment, a compilation error will ensue.
You need to login to post a reply.