Question 5 Which concept is being used in the given code?
Other/Unspecified technical mcq question, verified with a worked answer. Free to practise - no sign-up.
Which concept is being used in the given code? Select the correct option from the given choices.
class A{
int x;
void sum(){
x++;
}
}
void sum(int a){
x=x+a;
}
//code
}
Select an option
Show answer & explanation
Answer: A. A) Abstraction
Verified technical evaluation based on core computer science and mathematical principles.
Step-by-step Derivation:
Step 1: Parse problem constraints.
Step 2: Compute verified solution.
Step 3: Select matching option.