Professional Documents
Culture Documents
Civil GIS OO Lect2
Civil GIS OO Lect2
Creating Object:
1) Declaration cpl1 cpl2
2) Creation
a) Allocate (new)
b) Initialize (constructor)
Creating Object
is
Use the default constructor Yes No
there any
Parametrized constructor
Garbage collector:
1) Identify the Un-Referenced Object
2) Remove Un-Referenced Object
a) Execute destructor if exist
b) De-Allocate
obj