Static Classes and Class Constructors

Let's learn about constructors and static classes.

What’s a static class?

The keyword static in static classes denotes that the class is singular; this means we cannot create an instance (object) of that class. In a static class, all methods and fields must have the static keyword.

Example

Get hands-on with 1200+ tech skills courses.