Static Classes and Class Constructors
Let's learn about constructors and static classes.
We'll cover the following
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 1400+ tech skills courses.