Question OOP-ABS-0046
MediumA payment module calls processor.charge(amount) without knowing whether it's UPI, card or net banking. Which OOP principle does this show?
- A.
Multiple inheritance
- B.
Operator overloading
- C.
Encapsulation only
- D.
Abstraction
Sign up free to see the answer and a step-by-step explanation.