Skip to content

Commit 04be46f

Browse files
Evan PhilakhongEvan Philakhong
authored andcommitted
feat: adds BusinessCheckingAccount class
1 parent 8d69a4e commit 04be46f

File tree

1 file changed

+14
-1
lines changed
  • lesson_17/bank/bank_app/src/main/java/com/codedifferently/lesson17/bank

1 file changed

+14
-1
lines changed

lesson_17/bank/bank_app/src/main/java/com/codedifferently/lesson17/bank/Customer.java

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public class Customer {
1919
/**
2020
* Creates a new customer.
2121
*
22-
* @param id The ID of the customer.
22+
* @param id The ID of the customer.
2323
* @param name The name of the customer.
2424
* @param type The type of customer (individual or business)
2525
*/
@@ -29,6 +29,19 @@ public Customer(UUID id, String name, CustomerType type) {
2929
this.type = type;
3030
}
3131

32+
/**
33+
* Creates an new individual customer.
34+
*
35+
* @param id The ID of the customer.
36+
* @param name The name of the customer.
37+
* @param type The type of custimer (individual or business)
38+
*/
39+
public Customer(UUID id, String name, Customer type) {
40+
this.id = id;
41+
this.name = name;
42+
this.type = CustomerType.INDIVIDUAL;
43+
}
44+
3245
/**
3346
* Adds a checking account to the customer.
3447
*

0 commit comments

Comments
 (0)