C Sharp (C#) - Interfaces
How do interfaces facilitate writing a method that processes different payment types like CreditCard and PayPal?
IPayment with methods such as ProcessPayment().IPayment with their own logic.IPayment parameter and work with any payment type.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions