Q:
How to call a constructor in java?
Answer
Constructor chaining is the process of calling one constructor from another constructor with respect to current object.
Within same class: It can be done using this() keyword for constructors in same class
From base class: by using super() keyword to call constructor from the base class.
View answer
Workspace
Report Error
Discuss