Tuesday, 2 September 2008

classes in C#

Class is used in C# as well as C++.

In the book,'Beginning Visual C== 2005', it is not very well described. I get lost in chapter 8 and chapter 9.

You might have to do some web search to understand what is described in this book.

Like C++, C# also has the abstract class by adding a keyword 'abstract' in front of the class name. Sealed class is new in C#, which is not inheritable. Sealed can avoid being override.

Interface is allowed in C#, which won't allow access modifiers like public, private, protected etc. There is no code body in interface and no field member as well.

No comments: