20 lines
194 B
Text
20 lines
194 B
Text
|
// call a simple method and use its return value
|
||
|
|
||
|
class Main {
|
||
|
void main() {
|
||
|
int a,b;
|
||
|
C c;
|
||
|
c = new C();
|
||
|
a = 5;
|
||
|
b = c.aux(a);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
class C{
|
||
|
int aux(int arg){
|
||
|
return arg*2;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
|