qtr_2_study_guide
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Next revisionBoth sides next revision | ||
qtr_2_study_guide [2019/12/03 14:48] – cthiel | qtr_2_study_guide [2019/12/03 14:51] – cthiel | ||
---|---|---|---|
Line 13: | Line 13: | ||
Things to watch out for: | Things to watch out for: | ||
- | - not initializing a field ( fields are private, to encapsulate) | + | - Constructors should initialize the class' |
- | - accidentally | + | - When initialzing fields in a constructor, |
- | - 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 '' |
- | - not to add a System.out.print | + | - **Do not** add a '' |
- | - using local variables | + | - **Do not** use local variables |
- | - changing | + | - Variables are declared ONLY ONCE, not every time. |
- | - return | + | - **Do not** assign |
+ | - **Never** use '' | ||
+ | - Remember to '' | ||
+ | - **Do not** '' | ||
Finally, please remember to get a good night' | Finally, please remember to get a good night' |
qtr_2_study_guide.txt · Last modified: 2023/11/25 12:28 by frchris