forked from processing/processing-docs
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfinal.xml
More file actions
42 lines (27 loc) · 1.13 KB
/
final.xml
File metadata and controls
42 lines (27 loc) · 1.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<root>
<name>final</name>
<category>Structure</category>
<subcategory></subcategory>
<usage>Web & Application</usage>
<example>
<image></image>
<code><![CDATA[
final float constant = 12.84753;
println(constant); // Prints "12.84753" to the console
constant += 12.84; // ERROR! It's not possible to change a "final" value
]]></code>
</example>
<description><![CDATA[
Keyword used to state that a value, class, or method can't be changed. If the <b>final</b> keyword is used to define a variable, the variable can't be changed within the program. When used to define a class, a <b>final</b> class cannot be subclassed. When used to define a function or method, a <b>final</b> method can't be overridden by subclasses.<br />
<br />
This keyword is an essential part of Java programming and is not usually used with Processing. Consult a Java language reference or tutorial for more information.
]]></description>
<syntax></syntax>
<returns></returns>
<related></related>
<availability>1.0</availability>
<type>Keyword</type>
<level>Extended</level>
<partof>PDE</partof>
</root>