Frage im Vorstellungsgespräch bei EY

Can you explain the difference between class and object in object-oriented programming? How would you implement inheritance in C#? What is encapsulation and why is it important? Can you describe polymorphism and provide an example in C#? How do you handle exceptions in C#? What is the role of a constructor in a class? Explain the concept of abstraction in C#. Can you discuss the advantages of using interfaces in C#? What is LINQ and how is it used in C#? How would you approach debugging a C# application? Describe the primary differences between abstract classes and interfaces. How does C# manage memory allocation and deallocation? Explain the concept of method overloading and method overriding. Can you discuss the importance of access modifiers in C#? How do you implement a singleton pattern in C#? What are the different types of relationships in Entity Framework? How do you optimize SQL queries for better performance?