projects
/
external
/
swig.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
import source from 1.3.40
[external/swig.git]
/
Examples
/
tcl
/
java
/
Example.java
1
public class Example {
2
public int mPublicInt;
3
4
public Example() {
5
mPublicInt = 0;
6
}
7
8
public Example(int IntVal) {
9
mPublicInt = IntVal;
10
}
11
12
13
public int Add(int a, int b) {
14
return (a+b);
15
}
16
17
public float Add(float a, float b) {
18
return (a+b);
19
}
20
21
public String Add(String a, String b) {
22
return (a+b);
23
}
24
25
public Example Add(Example a, Example b) {
26
return new Example(a.mPublicInt + b.mPublicInt);
27
}
28
}
29