- Static constructor don't have any parameter.
- Static constructor don't have any access specifier because that constructor is never called from any other code so that there is no meaning of access specifier.
- it is possible to define static constructor and zero parameter instance constructor defined in same class. although the parameter are identical,
- there is no conflict because static constructor are called when class is loaded and instance constructor is loaded when instance is created.
Monday 23 December 2013
What thing you have to remember dealing with Static Constructor?
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment