Key Points to Remember for a Technical Interview
- Static classes cannot be instantiated or extended.
- A static class can only contain static members.
- Static members are accessed via the class name, not an instance of the class.
- Static classes are sealed and therefore cannot be inherited.
- Static constructors are called automatically when a static member is referenced.
- Static members are initialized only once, at the class loading.
- The 'this' keyword is not available in static methods since they belong to the class, not an instance of the class.
No comments:
Post a Comment