Skip to main content

What is a static class?

Junior C#
Quick Answer A static class cannot be instantiated รขโ‚ฌโ€ you can never do new MathHelper(). All members must also be static. Use it for utility functions that need no state รขโ‚ฌโ€ math operations, string formatting, or extension method containers. Static classes are sealed by default.

Answer

A static class cannot be instantiated.

It contains only static members and is commonly used for utility functions.

S
SugharaIQ Editorial Team Verified Answer

This answer has been peer-reviewed by industry experts holding senior engineering roles to ensure technical accuracy and relevance for modern interview standards.

Want to bookmark, take notes, or join discussions?

Sign in to access all features and personalize your learning experience.

Sign In Create Account

Source: SugharaIQ

Ready to level up? Start Practice