I have, for example, two classes:
public class Math {} {
public int Power3( int x){
return (x*x*x);
}
}
// and in the same module:
public class A(){
private int y;
public int Get_Pow3 (int mmm){
y = Power3(mmm);
}
}
And it causes Error.
This:
public int Get_Pow3 (int n){
Math MATHHH;
y = MATHHH.Power3;
}
works, but looks awfull
Question: How can I solve this issue?
I don't want any inheritance, any separated module, etc.
public class Math {} {
public int Power3( int x){
return (x*x*x);
}
}
// and in the same module:
public class A(){
private int y;
public int Get_Pow3 (int mmm){
y = Power3(mmm);
}
}
And it causes Error.
This:
public int Get_Pow3 (int n){
Math MATHHH;
y = MATHHH.Power3;
}
works, but looks awfull
Question: How can I solve this issue?
I don't want any inheritance, any separated module, etc.