has been initialized to “Testing”. Notice, however, that
explicit constructors, and that the normal constructor syntax has not been used. Rather,
obj
200
P a r t I :
T h e C # L a n g u a g e
Here, the names of the fields are explicitly specified along with their initial values. This
results in a default instance of
MyClass
being constructed (by use of the implicit default
constructor) and then
Do'stlaringiz bilan baham: