Math, asked by tusharbhardwaj1894, 1 year ago

Difference between method and constructor

Answers

Answered by Raghav138
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 amitaagarwal4827
4

Answer:

mark as brainliest please

Attachments:
Similar questions