Interface, abstract, partial and sealed classes
Interface
An interface is like a class but all the
methods and properties are abstract. An Interface cannot be
instantiated like abstract class. All the methods and properties
defined in Interface are by default public and abstract.
Interface generally refers to an abstraction that an entity provides of itself to the outside. Interface can help in separating the methods for external and internal communication without effecting in the way external entities interact with the type..
Abstract Class
An abstract class is a class with at least one method defined as abstract. This type of class cannot be instantiated. An abstract class can have one or more abstract methods and properties and other methods and properties like normal classes.
Partial Class
A class defined in two or more files is called a partial class. The keyword partial is used to define the class. When working on large projects, spreading a class over separate files allows multiple programmers to work on it simultaneously. During compile time all the partial class are compiled into one type only.
Sealed Class
A sealed class is a class that cannot be inherited. Sealed classes are used to restrict the inheritance feature of object oriented programming.
Revision number 2, Tuesday, March 24, 2009 2:02:55 PM by vik20000in
You must Login to comment.
|
Mon, Dec 1, 2008 2:36 AM
by rami_nassar
|
you should talk more about them
|
|
Fri, Dec 19, 2008 4:30 AM
by sirdneo
|
Nice little article, it will b lot better if you add some samples with article.
|
|
Thu, Mar 26, 2009 12:39 PM
by syed.tayyab.ali
|
@vik20000in:
Very good short notes!
|
|
Thu, Jun 18, 2009 2:10 AM
by munish dhull
|
i thimk a little more explanation is needed....
|
|
Fri, Jun 4, 2010 7:18 AM
by vivek_cs
|
not sufficient explanation, just a surface definition
|
|
Tue, Jun 8, 2010 6:31 AM
by sathish_juk
|
It is not sufficient explanation need little more.
|
Revision #3
Mon, Feb 4, 2008 8:00 AM
by
|
Security Guidelines and Recommendations
There's a great deal of good prescriptive security guidance out there in the form of whitepapers and books. Whitepapers patterns & practices Security Guidance for .NET Framework 2.0 patterns & practices ASP.NET 2.0 Security Guidance patterns &
|
New
Sun, Jul 8, 2012 1:05 PM
by
|
javascript replace() function replace only single characters
javascript replace() function replace only single characters I have been trying to use javascript replace() to search and replace special individual characters in a string. But having some difficulties. We can use the following way to solve the following problem
|
Revision #3
Sat, Jun 25, 2011 11:56 PM
by
|
F# Samples
Hi in this post only I want to help some links that will help you with F#. I think that F# is a good tool for different knid of things, so if you are working with that this can help you: http://fsharpsamples.codeplex.com/ http://fsharpnews.blogspot.com/2010
|
Revision #2
Tue, Mar 18, 2008 9:50 AM
by
|
Enterprise Library
Enterprise Library "The patterns & practices Enterprise Library from Microsoft is a library of application blocks designed to assist developers with common enterprise development challenges. Application blocks are a type of guidance, provided as source
|