HCLTech interview question

Inheritance vs Composition Microservices architecture