Working with Abstract classes, Sealed Classes, and Interfaces in C#
page 1 of 7
Published: 26 Mar 2007
This Article describes the usefullness of Abstract Classes, Sealed Classes, and Interfaces. It also explains when we should use each of them with help from code samples.
Average Rating: 
Views (Total / Last 10 Days): 47754/ 98


Using sealed classes is a new concept added in C#. It is difficult to say when we should use an abstract class and when we should use an interface. In general defining an abstract class without any implementation means with abstract members has the same effect as defining an interface; however there are a lot more differences than similarities between an abstract class and an interface. In this article I am not only trying to describe the concept of abstract classes, interfaces, and sealed classes, but also describe in what situation we should use which and how. The sample code snippets have been written in C#.

View Entire Article

User Comments

No comments posted yet.

Community Advice: ASP | SQL | XML | Regular Expressions | Windows

©Copyright 1998-2024  |  Page Processed at 2024-05-29 7:52:31 AM  AspAlliance Recent Articles RSS Feed
About ASPAlliance | Newsgroups | Advertise | Authors | Email Lists | Feedback | Link To Us | Privacy | Search