Write any two difference between constructor and function.
Answers
Answered by
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
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