Skip to lesson

Payment Processing Engine

UPI, cards, net banking and wallets all "pay", but each one charges its own fee and has its own rules. Polymorphism lets one loop handle all of them, while each payment type decides how it behaves.

What you will learn

What you will learn

  • Override parent methods in several child classes with @Override
  • Process a mixed array of objects through a parent reference
  • Extend parent behaviour with super.method()
  • Explain dynamic dispatch and overloading vs overriding
  • Push a Java OOP project to GitHub

Sign in to continue this lesson

Create an account to read every lesson, practise with the exercises and keep track of your progress.