Domanda di colloquio di Caliber Software

Can a static class be instantiated?

Risposta di colloquio

Anonimo

2 nov 2020

You cannot use the new keyword to create a variable of the class type. Because there is no instance variable, you access the members of a static class by using the class name itself.