19 lines
194 B
Text
Executable file
19 lines
194 B
Text
Executable file
// 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;
|
|
}
|
|
}
|
|
|
|
|