Pregunta de entrevista de SKH Algorithms

What is constructors What is primary key Pattern program

Respuesta de la entrevista

Anónimo

5 de dic de 2022

Constructor is a special method that is invoked automatically at the time of object creation. It is used to initialize the data members of new objects generally. The constructor has the same name as the class . Constructor is invoked at the time of object creation. It constructs the values i.e. provides data for the object which is why it is known as constructors.

1