Skip to content

Commit d7f4345

Browse files
committed
updated instructions for exercises 1-3
1 parent 35d3411 commit d7f4345

File tree

3 files changed

+143
-169
lines changed

3 files changed

+143
-169
lines changed

Instructions/Labs/l2p2-lp1-m1-exercise-create-classes-and-objects-in-csharp.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -549,7 +549,7 @@ Use the following steps to complete this task:
549549
The updated constructor initializes the `customerId` field using the already initialized `nextCustomerId` field. Notice that `nextCustomerId` is incremented by 1 before the `customerId` field is assigned a value.
550550
551551
> [!NOTE]
552-
> The `this` keyword is used to refer to the current instance of the class. It's used to access fields, properties, and methods of the current instance. The `this` keyword is not available in a static constructor.
552+
> The `this` keyword refers to the current instance of the class. It's used to access fields, properties, and methods of the current instance. In the `BankCustomer` class, the `this` keyword is used to access the read-only `customerId` field. The `this` keyword is not required in this context, but it's used for clarity. The `this` keyword is not available in a static constructor.
553553
554554
1. To assign a unique value to `customerId` inside your constructor that accepts `firstName` and `lastName` parameters, update the constructor to match the following code:
555555

0 commit comments

Comments
 (0)