.
NET Developer Interview Preparation Notes
1. Object-Oriented Programming (OOP) Concepts
Inheritance: Allows a child class to inherit members of a parent class. Promotes code reuse.
Polymorphism: Ability to redefine methods in derived classes (overriding) or have same method name with different signatures (ov
Encapsulation: Bundling data and restricting access using access modifiers.
Abstraction: Hiding internal implementation using abstract classes or interfaces.
2. Data Structures in C#
Array, List<T>, Dictionary<K,V>, Stack<T>, Queue<T> - Used for storing and manipulating collections.
3. Design Patterns
Singleton: Only one instance of a class.
Factory: Decides which class instance to create at runtime.
Repository: Abstracts data access logic and centralizes it.
4. Architectural Patterns
MVC:
[User] --> [Controller] --> [Model] --> [Database]
↓
[View]
Layered:
[UI] -> [Business Logic] -> [Repository] -> [Database]
Clean Architecture:
[Infrastructure]
↑
[Interfaces]
↑
[Use Cases]
↑
[Entities]
Microservices:
[Client]
↓
[API Gateway] → [Auth Service] ↔ [DB1]
→ [Order Service] ↔ [DB2]
→ [Payment Service] ↔ [DB3]