Mastering SOLID Principles in TypeScript for Better Code Design
Abstracted Payment Gateway using Inteface
interface PaymentGateway{
pay(amount:number):void
}
Single Responsiblity Principle (SRP): A class should have only one reason to change or should handle one action Handles logging of payment activiti...
codernex.hashnode.dev3 min read