Styrow.dev
Question 68 of 247
Java Topic: General medium

Can you call one constructor from another if a class has multiple constructors?

Question

Can you call one constructor from another if a class has multiple constructors?

Answer

Yes, use this() syntax.