Classes and Objects
- slide 24 : 29
Instantiation of classes
Instantiation
is the process of allocating memory to a new object of some class
Static instantiation:
The object is automatically created (and destroyed) when the surrounding object or block is created.
Dynamic instantiation:
The object is created on demand, by calling a particular operator (
new
).