How do you make a class static?

We can declare a class static by using the static keyword . A class can be declared static only if it is a nested class. It does not require any reference of the outer class. The property of the static class is that it does not allows us to access the non-static members of the outer class.

Sizin İçin Seçtik  What is the difference between static and const?

Leave a Reply

Your email address will not be published. Required fields are marked *

How do you make a class static?

We can declare a class static by using the static keyword . A class can be declared static only if it is a nested class. It does not require any reference of the outer class. The property of the static class is that it does not allows us to access the non-static members of the outer class.

Sizin İçin Seçtik  DBS ne demek Muhasebe?

Leave a Reply

Your email address will not be published. Required fields are marked *