🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← 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?

  1. A.Encapsulation
  2. B.Inheritance
  3. C.Polymorphism
  4. 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 →