About this document
Understanding Constructor Chaining in Java by Vijay Perumalla is a document available to read on EtoBox.
Constructor chaining allows calling one constructor from another constructor in the same class or another class. It is useful when there are multiple initialization tasks to perform. Constructors must call another using this() or super() as the first line, and there must be at least one constructor without this. super() calls the parent class constructor.
- Author
- Vijay Perumalla
- Language
- EN