views:

286

answers:

1

Hi guys, I am facing the interviews, always getting new things. But I want to know what are the most tricky question based on OOPS, C# and dot net with there answer. May be this thread will helpful to all who really willing to get knowledge.

+1  A: 
  • Understand "why" a factory is useful in lieu of the new operator: it is the only form of a virtual constructor.
  • Understand "design by contract," which has been around for more than a decade, but will now be expressly supported in .net 4.0
  • Understand good and bad uses of inheritance (hint: if you are not overriding virtual methods, good chance you are misusing inheritance).
  • Understand the history and proper use of exceptions: it derives from the need to handle errors coming from constructors.

In my opinion it equally important, or rather more important, to understand how the CLR operates. I highly recommend the book "CLR via C#" by Jeffrey Richter. You will surpass the competition if you study that.

Brent Arias