I am new to coding. What do you type inside brackets (). I have seen some codes () or some codes for example (integer n) . Can anyone explain with an example
I think, this doc will help you to understand the class method structure- https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_classes_defining_methods.htm
Go through it.