C# OOP Interview Questions: Top 20
These get asked at Google, Microsoft, Amazon. If you can explain these, you get hired. No fluff.
Warning: Interviewers use these to reject candidates. Master each one.
Interview Cheat Sheet: 60-Second Answers
| Encapsulation | Data hiding. Private fields + public properties. Prevents obj.X = -1 |
| Inheritance | IS-A. : symbol. Code reuse. Only 1 base class |
| Polymorphism | virtual + override. Base variable, child method runs |
| Abstraction | abstract class. Can't instantiate. Forces child to implement |
| Interface | CAN-DO contract. No code. Multiple allowed. Start with I |
| sealed | No inheritance. String is sealed. Security + performance |
| static | No objects. Utility class. Math.Max() example |
| new vs override | new hides, breaks poly. override = true poly |
No comments yet. Be the first to share your thoughts!