Computer Science, asked by snehal1525, 2 months ago

Create a constructor for class Demo which accepts 2 integers to initialize int num1 and num2
(icse)​

Answers

Answered by srakebr
0

Answer:

public Demo(int n1 , int n2){

num1=n1;

num2=n2;

}

Explanation:

Similar questions