Initialize variable
Initialize Member Variables(Class variable, Instance variable)
Initializing order
cv
iv
automatic : 0
=
{} : class variable(static) => static {...}, instance variable => constructor
Initialize local variable before use!(ESSENTIAL)
member variable(instance variable, class(static) variable)) is initialized automatically.
Initialize with =
2. initialize with {..}
initialize instance : {...}
initialize cv(classs variable(static)) : static {...}
3. initialize (instance) with constructor
Last updated