Create a constructor for class Demo which accepts 2 integers to initialize int num1 and num2
(icse)
Answers
Answered by
0
Answer:
public Demo(int n1 , int n2){
num1=n1;
num2=n2;
}
Explanation:
Similar questions
Physics,
1 month ago
India Languages,
1 month ago
Math,
2 months ago
English,
8 months ago
Geography,
8 months ago