Constructor Chaining
Calling another constructor so initialization logic can be reused.
What is Constructor Chaining in Java?
Constructor Chaining — Calling another constructor so initialization logic can be reused.
class Book {
String title;
Book(String title) {
this.title = title;
}
}
Level: Journeyman · More Java terms at this level
Updated