User Tools

Site Tools


qtr_1_study_guide

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revisionBoth sides next revision
qtr_1_study_guide [2022/10/01 10:08] frchrisqtr_1_study_guide [2022/10/01 10:09] frchris
Line 16: Line 16:
  
  
-==Things to watch out for:==+====Things to watch out for:====
   - Constructors should initialize the class' fields  (fields are ''private'', to encapsulate)    - Constructors should initialize the class' fields  (fields are ''private'', to encapsulate) 
   - When initialzing fields in a constructor, **Do not** mention its type- this accidentally makes a local variable instead of initializing the classes field that has the same name.   - When initialzing fields in a constructor, **Do not** mention its type- this accidentally makes a local variable instead of initializing the classes field that has the same name.
qtr_1_study_guide.txt · Last modified: 2023/10/09 09:23 by frchris

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki