How does Instantiation work. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

How does Instantiation work.

Out of many topics I have gone through, for now, Instantiation is really giving a tough time. Who knows how it works should please help.

25th Nov 2019, 2:57 AM
Adeagbo Toheeb A.
Adeagbo Toheeb A. - avatar
1 Answer
+ 3
Instantiation is process which is performed by compiler when we create object of a class... Compiler calls constructor of that class and performs task from constructor method. At the end, we would have object of class available to us
25th Nov 2019, 3:28 AM
Ketan Lalcheta
Ketan Lalcheta - avatar