qtr_1_study_guide
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
qtr_1_study_guide [2019/10/04 13:01] – frchris | qtr_1_study_guide [2019/10/04 13:07] – frchris | ||
---|---|---|---|
Line 9: | Line 9: | ||
Things to watch out for: | Things to watch out for: | ||
- Constructors should initialize the class' | - Constructors should initialize the class' | ||
- | - accidentally | + | - **Do not** use the type in the constructor- this accidentally |
- | - remember | + | - Remember |
- | - local variables are never public nor private | + | - Remember local variables are **never** public nor private |
- | - dangling else statements (p 148) | + | - Remember method names should |
+ | - Watch for dangling else statements (p 148) - without brackets, the last '' | ||
- forgetting to have a method return something of the correct type | - forgetting to have a method return something of the correct type | ||
- **Do not** add a '' | - **Do not** add a '' |
qtr_1_study_guide.txt · Last modified: 2023/10/09 09:23 by frchris