Write a program to perform four arithmetic operations using function .....OOP in java

Here is an example of a program that uses object-oriented programming in Java to perform four arithmetic operations using functions:

```java
class ArithmeticOperations {
private int num1;
private int num2;

public ArithmeticOperations(int num1, int num2) {
this.num1 = num1;
this.num2 = num2;
}

public int add() {
return num1 + num2;
}

public int subtract() {
return num1 - num2;
}

public int multiply() {
return num1 * num2;
}

public double divide() {
return (double) num1 / num2;
}
}

public class Main {
public static void main(String[] args) {
ArithmeticOperations operations = new ArithmeticOperations(10, 5);

int sum = operations.add();
System.out.println("Sum: " + sum);

int difference = operations.subtract();
System.out.println("Difference: " + difference);

int product = operations.multiply();
System.out.println("Product: " + product);

double quotient = operations.divide();
System.out.println("Quotient: " + quotient);
}
}
```

In this program, the `ArithmeticOperations` class represents an arithmetic operation with two operands. The constructor initializes the operands, and the four functions `add()`, `subtract()`, `multiply()`, and `divide()` perform the respective operations.

In the `main` function, a `ArithmeticOperations` object is created with operands 10 and 5. The four operations are then performed using the object's functions, and the results are printed on the console.