What are different Types of constructor ?

There are three type of constructors
  1. Default constructors.
  2. Parameterized constructors.
  3. Copy constructors.
A constructors that accepts no arguments is called the default constructor. As in previous example integer() is the default constructor.

Post a Comment

Previous Post Next Post