You are developing an application that tracks tennis matches. A match is represented by the
following class:
A match is created by using the following code:
How many times is the Location property on the newly created Match class assigned?
A.
0
B.
1
C.
2
D.
3
Can someone explain why the answer is two?
The first time is when the match is instantiated in “Dim match = New Match”.
Location is initially still “unknown”.
The second time in the With statement when location is set to “north region”.
Well, that makes sense. Thanks.
First time upon instantiation of the class (within the constructor), then upon assignment of the property.