Showing posts with label Constructor Chaining. Show all posts
Showing posts with label Constructor Chaining. Show all posts

Constructor Chaining in Java

  • 0
     In the professional language, A constructor is a subroutine which is called at the time of creation of object of a class. Well, Constructor is a very special method that does not has a return type, not even void. The job of this special method is to initialise the object with default values. If you don't create it explicitly, Java does it for you. This special method is called as soon as an instance of the class.