Geeks With Blogs
Information -> Source for Next Generation brcraju@hotmail.com

Here is good discussion on Static and abstract, Max has given this example in Ericqu comments section on static class blog.

@Talbott
abstract does _not require_ inheritance for a full implementation:

abstract class Foo
{
static void DoSomething(){}
}
...
Foo.DoSomething();

is totally legal code. 'abstract' only means no instance can be created - at least at the view of the Compiler/Runtime.
But I have to agree that most people think 'abstract' means an incomplete class. So it may be less confusing to introduce a "new" keyword instead.

http://weblogs.asp.net/ericgu/archive/2004/04/13/112274.aspx

Posted on Monday, April 19, 2004 7:21 AM C# | Back to top


Comments on this post: Static Class - Abstract does not require inheritence for full implementation.

No comments posted yet.
Your comment:
 (will show your gravatar)


Copyright © Raju | Powered by: GeeksWithBlogs.net