1) Class name:-
Class name should starts with capital letters, if class name having multiple words separated with capital letter.
Example : StudentName, SavingAccount,etc
2)Variable names starts with small letters, if variable name having multiple letter words separated with capital letter.
Example:- studentName, price, studentMarks, etc
3)Method/function name starts with small letters, if method name having multiple letters then separated with capital letter
Example:- deposit (), withdraw (), printBalance(), etc
4) Constant name should be given in capital letters, if constant name having multiple words then separate with special characters "_".
Example:- PI, MAX_VALUE, etc
No comments:
Post a Comment