← Quiz: What Is OOP: all 10 questions
Quiz: What Is OOP · Question 10 of 10
"pay() works for UPI, card or cash" describes which pillar?
"pay() works for UPI, card or cash" describes which pillar?
- A.Encapsulation
- B.Inheritance
- C.Polymorphism
- D.Abstraction
Answer & explanation
Correct answer: Polymorphism
One name, many behaviours depending on the object: polymorphism.
Can you get the rest right without peeking?
Take the timed Quiz: What Is OOP quiz free. Pass it to earn XP and count towards your certificate.
Start the quiz →