Question 23
Back to Exercise
In object-oriented programming, a class taking on the features of another class is called:
- A inheritance Correct
- B encapsulation
- C compilation
- D debugging
Correct Answer: Option A
A child class reuses the parent's code.
Trap: the other options are related software terms that examiners use as look-alike distractors.
Answer: inheritance
Discussion & Comments 0
Share your method, a shortcut, or ask about a step you didn't follow.
No comments yet. Be the first to share your solution!