Difference between method and constructor
Answers
Answered by
7
1.Constructor are used to initialize the state of object,where asmethod is expose the behaviour of object. 2.Constructor must not have return type where as method must have return type. 3.Constructor name same as the class name where as methodmay or may not the same class name.
Answered by
4
Answer:
mark as brainliest please
Attachments:
Similar questions