Object Initialization
In this chapter, we will learn more about objects and classes, including reasons behind certain design decisions.
Objectives¶
- Understand the use of
this.andthis() - Be able to initialize fields with instance initializers.
- Understand class and object order of initialization.
- Understand the use of
finalwith fields and method parameters.
Topics¶
thisvs.this()- Initializing Static Fields
- Initializing Instance Fields
- Order of Initialization
- Constant Fields and Variables
privateMethods- Labs