1. Static constructor never have any access specifier.
class demo
{
public static demo() // error
{
}
}
2. You never decided when static constructor is called. but one thing you sure that static function is called before the firth call to any member of class.
class demo
{
public static demo() // error
{
}
}
2. You never decided when static constructor is called. but one thing you sure that static function is called before the firth call to any member of class.
No comments:
Post a Comment