Does constructor overloading include different return types for constructors to be overloaded?
Does constructor overloading include different return types for constructors to be overloaded? Correct Answer No, constructors doesn’t have any return type
The constructors doesn’t have any return type. When we can’t have return type of a constructor, overloading based on the return type is not possible. Hence only parameters can be different.
মোঃ আরিফুল ইসলাম
Feb 20, 2025