What is a “static” class?

后端 未结 10 1428
面向向阳花
面向向阳花 2020-12-04 16:35

In C# what is the difference between:

public static class ClassName {}

And:

public class ClassName {}
10条回答
  •  一生所求
    2020-12-04 17:15

    A static class also can not be inherited from, whereas a non-static class with static members can be inherited from.

提交回复
热议问题