Employee Emp = new Employee() 

// new Employee() => will trigger the constructor call

class Employee{

Employee() {}

}
  1. Can a constructor call another constructor?

    Yes We can call it. (Like in the example of copy constructor we just saw)

  2. Can a constructor be overloaded?

    Yes. ( same constructor name, accepting: different number of parameters.. and different types of parameters)

Note that whenever a constructor is called : it is stored in heap memory

Whenever the reference to the heap memory is gone:

the garbage collector clears that heap mamory

( this is not there in c++;

we would need the keyword delete for that.)