Working with Abstract classes, Sealed Classes, and Interfaces in C#
page 1 of 7
Published: 26 Mar 2007
Abstract
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.
by SANJIT SIL
Feedback
Average Rating: 
Views (Total / Last 10 Days): 48450/ 55

Introduction

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 ASPAlliance.com  |  Page Processed at 2024-03-19 5:56:10 AM  AspAlliance Recent Articles RSS Feed
About ASPAlliance | Newsgroups | Advertise | Authors | Email Lists | Feedback | Link To Us | Privacy | Search