1. What are the design patterns in .NET?Give me a brief.
2. Why Should we use Interface in .NET while we can write the same code in the main class too.
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Sam HobbsPosted Dec 23, 2009, 3:05 AM
Mahesh ChandPosted Dec 22, 2009, 7:10 PM
If you have a small program, say 20 lines, you can write in Main. But when you have large application with different types of resources - user interfaces, controls, images, code, business logic, database and so on, your Main method will get confusing and unmanageable. Breaking a large cluster of code into smaller pieces is one of the main feature of modular programming.