- Static Class cannot be instantiated unlike the unstatic class. You should directly access its Method via the ClassName.MethodName
- A Program can't tell when it is going to load static class but its definitely loaded before the call.
- A Static class will always have the static constructor and its called only once since after that its in the memory for its lifetime.
- A Static class can contain only static members. So all the members and functions have to be static.
- A Static class is always sealed since it cannot be inherited further. Further they cannot inherit form any other class (except Object)
Saturday, March 12, 2011
Static Class
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment