5.4 class declaration when writing a class, the following format rules should be observed: -The left parenthesis before the method name and its parameter list (do not have a space between them-left braces {located at the end of the declaration statement-right braces} and a new line, aligned with the corresponding declaration statement, unless it is an empty statement,} should be followed by {followed by SyntaxHighlighter. all ();
Declaration of the 5.4 class
When writing a category, follow the following format rules:
-Do not have spaces between the left brackets before the method name and its parameter list.
-The left braces "{" are at the end of the statement.
-The right braces "}" start another line and align with the corresponding statement. unless it is an empty statement, "}" should be followed "{"
Class Sample extends Object {
Int $ ivar1;
Int $ ivar2;
Function Sample (int $ I, int $ j ){
Ivar $1 = $ I;
Ivar $2 = $ j;
}
Function emptyMethod (){}
...
}
-Separate methods with empty lines