空的建构函式宣告防止自动产生预设建构函式。
The declaration of the empty constructor prevents the automatic generation of a default constructor.
如果在函式宣告上指定附注,就不需要在函式定义上指定。
If you specify annotations on the function declaration then you do not have to specify them on the function definition.
在堆叠上宣告的变数会位于紧邻在函式之呼叫端返回位址的位置。
Variables declared on the stack are located next to the return address for the function's caller.
若要修正此规则的违规情形,请使建构函式受到保护,或者勿将型别宣告为抽象。
To fix a violation of this rule, either make the constructor protected or do not declare the type as abstract.
为函式明确地宣告传回型别,可增进程序码的可读性,因为函式传回的资料型别会变得清楚易懂。
Declaring a return type explicitly for a function improves code readability, since the type of data that the function will return is immediately clear.
为函式明确地宣告传回型别,可增进程序码的可读性,因为函式传回的资料型别会变得清楚易懂。
Declaring a return type explicitly for a function improves code readability, since the type of data that the function will return is immediately clear.
应用推荐