Computer Science, asked by sahildas9021, 6 months ago

Write any two difference between constructor and function.​

Answers

Answered by Anonymous
2

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.

Answered by 46omkar7
0

Following are 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