Static and Sealed class differences

.net, c#, oop, sealed, static

Solution

This may help you:

+--------------+---+-------------------------+------------------+---------------------+
|  Class Type  |   | Can inherit from others | Can be inherited | Can be instantiated | 
|--------------|---|-------------------------+------------------+---------------------+
| normal       | : |          YES            |        YES       |         YES         |
| abstract     | : |          YES            |        YES       |         NO          |
| sealed       | : |          YES            |        NO        |         YES         |
| static       | : |          NO             |        NO        |         NO          |
+--------------+---+-------------------------+------------------+---------------------+

Problem

Is there any class that be implemented in static class? means: ``` static class ABC : Anyclass ``` Is there any class which can be inherited in both sealed class and static class? means: ``` static class ABC : AClass {} ``` And ``` sealed class ABC : AClass {} ``` May I be wrong in some extent?

Original source

Related problems