Skip to content

Commit 7f94b1d

Browse files
committed
updating instructions and code with fictitious names
1 parent 3515427 commit 7f94b1d

9 files changed

Lines changed: 338 additions & 241 deletions

File tree

DownloadableCodeProjects/LP1_classes-properties-methods/Classes_M1/Solution/BankCustomer.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ namespace Classes_M1;
55
public class BankCustomer
66
{
77
private static int nextCustomerId;
8-
public string fName = "John";
9-
public string lName = "Doe";
8+
public string fName = "Tim";
9+
public string lName = "Shao";
1010
public readonly string customerId;
1111

1212
static BankCustomer()

DownloadableCodeProjects/LP1_classes-properties-methods/Classes_M1/Solution/Program.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
using Classes_M1;
22

3-
string firstName = "John";
4-
string lastName = "Doe";
3+
string firstName = "Tim";
4+
string lastName = "Shao";
55

66
BankCustomer customer1 = new BankCustomer(firstName, lastName);
77

8-
firstName = "Jane";
8+
firstName = "Lisa";
99
BankCustomer customer2 = new BankCustomer(firstName, lastName);
1010

11-
firstName = "Leonardo";
12-
lastName = "Rossi";
11+
firstName = "Sandy";
12+
lastName = "Zoeng";
1313
BankCustomer customer3 = new BankCustomer(firstName, lastName);
1414

1515
Console.WriteLine($"BankCustomer 1: {customer1.fName} {customer1.lName} {customer1.customerId}");

DownloadableCodeProjects/LP1_classes-properties-methods/Classes_M2/Starter/BankAccount.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
using System;
22

3-
namespace Classes_M1;
3+
namespace Classes_M2;
44

55
public class BankAccount
66
{
@@ -22,7 +22,6 @@ public BankAccount(string customerIdNumber)
2222
{
2323
this.accountNumber = nextAccountNumber++;
2424
this.customerId = customerIdNumber;
25-
//Console.WriteLine($"Account created: account# {accountNumber}, balance {balance}, rate {interestRate}, type {accountType}, customer ID {customerId}");
2625
}
2726

2827
public BankAccount(string customerIdNumber, double balance, string accountType)
@@ -31,6 +30,5 @@ public BankAccount(string customerIdNumber, double balance, string accountType)
3130
this.customerId = customerIdNumber;
3231
this.balance = balance;
3332
this.accountType = accountType;
34-
//Console.WriteLine($"Account created: account# {accountNumber}, balance {balance}, rate {interestRate}, type {accountType}, customer ID {customerId}");
3533
}
3634
}

DownloadableCodeProjects/LP1_classes-properties-methods/Classes_M2/Starter/BankCustomer.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
using System;
22

3-
namespace Classes_M1;
3+
namespace Classes_M2;
44

55
public class BankCustomer
66
{
77
private static int nextCustomerId;
8-
public string fName = "John";
9-
public string lName = "Doe";
8+
public string fName = "Tim";
9+
public string lName = "Shao";
1010
public readonly string customerId;
1111

1212
static BankCustomer()

DownloadableCodeProjects/LP1_classes-properties-methods/Classes_M2/Starter/Program.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
using Classes_M1;
1+
using Classes_M2;
22

3-
string firstName = "John";
4-
string lastName = "Doe";
3+
string firstName = "Tim";
4+
string lastName = "Shao";
55

66
BankCustomer customer1 = new BankCustomer(firstName, lastName);
77

8-
firstName = "Jane";
8+
firstName = "Lisa";
99
BankCustomer customer2 = new BankCustomer(firstName, lastName);
1010

11-
firstName = "Leonardo";
12-
lastName = "Rossi";
11+
firstName = "Sandy";
12+
lastName = "Zoeng";
1313
BankCustomer customer3 = new BankCustomer(firstName, lastName);
1414

1515
Console.WriteLine($"BankCustomer 1: {customer1.fName} {customer1.lName} {customer1.customerId}");

Instructions/Labs/01-exercise-template.md

Lines changed: 0 additions & 95 deletions
This file was deleted.

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

Lines changed: 39 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ Use the following steps to complete this task:
215215
216216
```csharp
217217
218-
BankCustomer bankCustomer2 = new BankCustomer("John", "Doe");
218+
BankCustomer bankCustomer2 = new BankCustomer("Tim", "Shao");
219219
220220
```
221221
@@ -231,7 +231,7 @@ Use the following steps to complete this task:
231231
232232
BankCustomer customer1 = new BankCustomer();
233233
234-
BankCustomer customer2 = new BankCustomer("John", "Doe");
234+
BankCustomer customer2 = new BankCustomer("Tim", "Shao");
235235
236236
```
237237
@@ -288,7 +288,7 @@ Use the following steps to complete this task:
288288
```plaintext
289289
290290
BankCustomer created
291-
BankCustomer created: John Doe
291+
BankCustomer created: Tim Shao
292292
293293
```
294294
@@ -304,8 +304,8 @@ Use the following steps to complete this task:
304304
305305
```csharp
306306
307-
public string fName = "John";
308-
public string lName = "Doe";
307+
public string fName = "Tim";
308+
public string lName = "Shao";
309309
public string accountId = "1010101010";
310310
311311
```
@@ -352,8 +352,8 @@ Use the following steps to complete this task:
352352
353353
```csharp
354354
355-
string firstName = "John";
356-
string lastName = "Doe";
355+
string firstName = "Tim";
356+
string lastName = "Shao";
357357
string customerIdNumber = "1010101010";
358358
359359
```
@@ -362,16 +362,16 @@ Use the following steps to complete this task:
362362
363363
```csharp
364364
365-
firstName = "Jane";
365+
firstName = "Lisa";
366366
BankCustomer customer2 = new BankCustomer(firstName, lastName);
367367
```
368368
369369
1. To create a third object named `customer3` that uses your third constructor, add the following code to the Program.cs file:
370370
371371
```csharp
372372
373-
firstName = "Leonardo";
374-
lastName = "Rossi";
373+
firstName = "Sandy";
374+
lastName = "Zoeng";
375375
accountId = "2020202020";
376376
BankCustomer customer3 = new BankCustomer(firstName, lastName, customerIdNumber);
377377
@@ -397,17 +397,17 @@ Use the following steps to complete this task:
397397
398398
namespace Classes_M1;
399399
400-
string firstName = "John";
401-
string lastName = "Doe";
400+
string firstName = "Tim";
401+
string lastName = "Shao";
402402
string customerIdNumber = "1010101010";
403403
404404
BankCustomer customer1 = new BankCustomer();
405405
406-
firstName = "Jane";
406+
firstName = "Lisa";
407407
BankCustomer customer2 = new BankCustomer(firstName, lastName);
408408
409-
firstName = "Leonardo";
410-
lastName = "Rossi";
409+
firstName = "Sandy";
410+
lastName = "Zoeng";
411411
customerIdNumber = "2020202020";
412412
BankCustomer customer3 = new BankCustomer(firstName, lastName, customerIdNumber);
413413
@@ -429,8 +429,8 @@ Use the following steps to complete this task:
429429
public class BankCustomer
430430
{
431431
// add public fields for fName, lName, and accountID
432-
public string fName = "John";
433-
public string lName = "Doe";
432+
public string fName = "Tim";
433+
public string lName = "Shao";
434434
public string customerId = "1010101010";
435435
436436
public BankCustomer()
@@ -459,9 +459,9 @@ Use the following steps to complete this task:
459459
460460
```plaintext
461461
462-
BankCustomer 1: John Doe 1010101010
463-
BankCustomer 2: Jane Doe 1010101010
464-
BankCustomer 3: Leonardo Rossi 2020202020
462+
BankCustomer 1: Tim Shao 1010101010
463+
BankCustomer 2: Lisa Doe 1010101010
464+
BankCustomer 3: Sandy Zoeng 2020202020
465465
466466
```
467467
@@ -482,8 +482,8 @@ Use the following steps to complete this task:
482482
public class BankCustomer
483483
{
484484
// add public fields for fName, lName, and accountID
485-
public string fName = "John";
486-
public string lName = "Doe";
485+
public string fName = "Tim";
486+
public string lName = "Shao";
487487
public string customerId = "1010101010";
488488
489489
public BankCustomer()
@@ -575,17 +575,17 @@ Use the following steps to complete this task:
575575
576576
using Classes_M1;
577577
578-
string firstName = "John";
579-
string lastName = "Doe";
578+
string firstName = "Tim";
579+
string lastName = "Shao";
580580
int accountNumber = 0;
581581
582582
BankCustomer customer1 = new BankCustomer();
583583
584-
firstName = "Jane";
584+
firstName = "Lisa";
585585
BankCustomer customer2 = new BankCustomer(firstName, lastName);
586586
587-
firstName = "Leonardo";
588-
lastName = "Rossi";
587+
firstName = "Sandy";
588+
lastName = "Zoeng";
589589
accountNumber = 12345;
590590
BankCustomer customer3 = new BankCustomer(firstName, lastName, accountNumber);
591591
@@ -602,8 +602,8 @@ Use the following steps to complete this task:
602602
public class BankCustomer
603603
{
604604
private static int nextCustomerId;
605-
public string fName = "John";
606-
public string lName = "Doe";
605+
public string fName = "Tim";
606+
public string lName = "Shao";
607607
public readonly string customerId;
608608
609609
static BankCustomer()
@@ -761,16 +761,16 @@ Use the following steps to complete this task:
761761
762762
using Classes_M1;
763763
764-
string firstName = "John";
765-
string lastName = "Doe";
764+
string firstName = "Tim";
765+
string lastName = "Shao";
766766
767767
BankCustomer customer1 = new BankCustomer(firstName, lastName);
768768
769-
firstName = "Jane";
769+
firstName = "Lisa";
770770
BankCustomer customer2 = new BankCustomer(firstName, lastName);
771771
772-
firstName = "Leonardo";
773-
lastName = "Rossi";
772+
firstName = "Sandy";
773+
lastName = "Zoeng";
774774
BankCustomer customer3 = new BankCustomer(firstName, lastName);
775775
776776
Console.WriteLine($"BankCustomer 1: {customer1.fName} {customer1.lName} {customer1.customerId}");
@@ -796,8 +796,8 @@ Use the following steps to complete this task:
796796
public class BankCustomer
797797
{
798798
private static int nextCustomerId;
799-
public string fName = "John";
800-
public string lName = "Doe";
799+
public string fName = "Tim";
800+
public string lName = "Shao";
801801
public readonly string customerId;
802802
803803
static BankCustomer()
@@ -860,9 +860,9 @@ Use the following steps to complete this task:
860860
861861
```plaintext
862862
863-
BankCustomer 1: John Doe 0014653176
864-
BankCustomer 2: Jane Doe 0014653177
865-
BankCustomer 3: Leonardo Rossi 0014653178
863+
BankCustomer 1: Tim Shao 0014653176
864+
BankCustomer 2: Lisa Shao 0014653177
865+
BankCustomer 3: Sandy Zoeng 0014653178
866866
Account 1: Account # 12885967, type Checking, balance 0, rate 0, customer ID 0014653176
867867
Account 2: Account # 12885968, type Checking, balance 1500, rate 0, customer ID 0014653177
868868
Account 3: Account # 12885969, type Checking, balance 2500, rate 0, customer ID 0014653178

0 commit comments

Comments
 (0)