Can we create an object of a static class?
I'll answer
Earn 20 gold coins for an accepted answer.20
Earn 20 gold coins for an accepted answer.
40more
40more
Studied at the University of Tokyo, Lives in Tokyo, Japan.
The compiler will guarantee that instances of this class cannot be created. Static classes are sealed and therefore cannot be inherited. They cannot inherit from any class except Object. Static classes cannot contain an instance constructor; however, they can contain a static constructor.Jul 20, 2015
2023-06-13 06:34:37
评论(499)
Helpful(122)
Helpful
Helpful(2)

Madison Brown
QuesHub.com delivers expert answers and knowledge to you.
The compiler will guarantee that instances of this class cannot be created. Static classes are sealed and therefore cannot be inherited. They cannot inherit from any class except Object. Static classes cannot contain an instance constructor; however, they can contain a static constructor.Jul 20, 2015