Abstract Sealed Classes?

It is equivalent to "static class" in the C# language. The language that was used to write almost all of the BCL classes. All the methods must be static.

Declaring it abstract and sealed prevents anybody from deriving from the class and creating an instance of it The class methods are the exact equivalent of free functions in the C and C++ language. Something the CLR does not support.

It is equivalent to "static class" in the C# language. The language that was used to write almost all of the BCL classes. All the methods must be static.

Declaring it abstract and sealed prevents anybody from deriving from the class and creating an instance of it. The class methods are the exact equivalent of free functions in the C and C++ language. Something the CLR does not support.

I totally agree with you, becuause it looks like JAVA'S MATH class for instance, but why the msdn documentation state that this isn't possible or right if you can do it?! – AB Najjar Sep 4 '10 at 22:06 @Ebraheem Najjar: It's only possible to do this directly at the IL level. The compiler won't let you write a sealed abstract class directly.

– Scott Dorman Sep 4 '10 at 22:28 The IL attributes on a class are distinct from the keywords in the language. In C#, it makes no sense to declare a class sealed and abstract, it will complain. Declaring it static is what turns these IL attributes on.

There is no CLR analogue for a 'static' class. – Hans Passant Sep 4 '10 at 22:38.

They can't both abstract and sealed, it makes no sense A sealed class cannot be used as a base class. For this reason, it cannot also be an abstract class. Sealed classes prevent derivation.

Because they can never be used as a base class, some run-time optimizations can make calling sealed class members slightly faster. msdn.microsoft.com/en-us/library/ms17315....

He meant c++/cli. Try public ref class CProperty sealed abstract { }; – lukas Sep 4 '10 at 21:29 A static C# class is actually abstract sealed, although you can't explicitly use these modifiers together in your code. But the OP is talking about C++/CLI, where there is no concept of static class – Thomas Levesque Sep 4 '10 at 22:04.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions