amitshekhariitbhu / android-interview-questions

Your Cheat Sheet For Android Interview - Android Interview Questions and Answers
https://outcomeschool.com
Apache License 2.0
11.46k stars 2.26k forks source link

Update difference between a constructor and a method #88

Closed jayesh83 closed 4 years ago

jayesh83 commented 4 years ago

Provided an example with a syntax to understand better

mishra3452 commented 4 years ago

Provided an example with a syntax to understand better

use the above format and you can remove 1, 2, 3,.....numbering from it

Also, for the code, you can use:

public class SomeClass{
    SomeClass(parameter_list){ 
        ...
    } 
    ...
 }
jayesh83 commented 4 years ago

@mishra3452 check out the latest 2 commits