first commit

This commit is contained in:
Boris
2024-01-15 20:14:10 +00:00
commit 8c81ee28b7
3106 changed files with 474415 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
## Lecture 1 (11:00) - Class Definitions
- String is capitalised due to it being a class.
### Scope
- Parameter can only be accessed from the body of the method in which it is declared. We can say its **scope** is restricted to the body of the method.
- The scope of a field variable is the body of the class it is declared in.
### Lifetime and Accessor Methods
- Lifetime of a parameter of a method is the duration of a particular call to a method.
- Value is lost when call completed
- Lifetime of an objects field variable is the lifetime of the object itself
- Accessor method allows access to the value of a field without changing the state of an object