What are Generics/Templates? How do they improve type safety and performance compared to casting? | Advanced Concepts and Design Principles | OOPS Interview Questions | NextRound.in