The constructor does not, in fact, return anything. You will not have a return type when declaring a constructor. Constructor is typically invoked implicitly during instantiation. Additionally, it serves only to initialize the instance variables; it is not a method.
Mercy Margret Answered question September 7, 2023