C# static classThe C# static class is like the normal class but it cannot be instantiated. It can have only static members. The advantage of static class is that it provides you guarantee that instance of static class cannot be created. Points to remember for C# static class
C# static class exampleLet's see the example of static class that contains static field and static method. Output: Value of PI is: 3.14 Cube of 3 is: 27 Next TopicC# static constructor |
We provides tutorials and interview questions of all technology like java tutorial, android, java frameworks
G-13, 2nd Floor, Sec-3, Noida, UP, 201301, India