Computer Science, asked by sahildas9021, 6 months ago

Write any two difference between constructor and function.​

Answers

Answered by Anonymous
1

Answer:

\huge\boxed{\fcolorbox{green}{black}{\green{Answer}}}

the difference between constructor and method. Constructor is used to initialize an object whereas method is used to exhibits functionality of an object. Constructors are invoked implicitly whereas methods are invoked explicitly.

Similar questions