Creating objects means to allocate memory
space for all the instance variables of the objects. Step to create an object are,
1. Declare an object.
2. Define the object using new operator. The new operator
dynamically allocates memory for an object and returns a reference to it.
The general form is
1. Declare an object.
2. Define the object using new operator. The new operator
dynamically allocates memory for an object and returns a reference to it.