Which of the following statements are correct about a static class ?
1.A static class can not act as a base class.
2.A static class always inherits from object class.
3.A static class can not act as a child class.
4.A static class can contain only static members.
5.We can not create an instance or object of a static class.
Statements 1&3 are correct.
Statements 2&4 are correct.
All the statements are correct.
Statements 1,3&4 are correct.
Static class does not support inheritance but by default all static classes are inherited from object base class.and we cannot use new keyword with static class.
Back To Top