Pergunta de entrevista da empresa HCLTech

4.Briefly explain the concept of constructor overloading

Resposta da entrevista

Sigiloso

2 de jul. de 2021

Constructor overloading is the process of creating multiple constructors in the class consisting of the same name with a difference in the constructor parameters. Depending upon the number of parameters and their corresponding types, distinguishing of the different types of constructors is done by the compiler.