Növbəti siniflər diaqramına əsasən Integersinfini tərtib edin:

Verilmiş üç a, b, c ədədlərinə görə (a * 7 + b - 2) * (a - c + 5) ifadəsinin qiymətini hesablayın.
interface MyNumber
{
public long getValue();
public MyInteger Add(long a);
public MyInteger Add(MyInteger a);
public MyInteger Minus(long a);
public MyInteger Minus(MyInteger a);
public MyInteger Multiply(long a);
public MyInteger Multiply(MyInteger a);
public MyInteger Divide(long a);
public MyInteger Divide(MyInteger a);
}
class MyInteger implements MyNumber
{
private long n;
MyInteger(long n){
...
}
...
}Tək sətirdə Modulca 10^9-dan böyük olmayan üç ədəd: a, b, c.
İfadənin qiymətini verməli.
Nümunə 1