Methods appear in a class declaration as function or procedure headings, with no body. Defining declarations for each method occur elsewhere in the program.
英
美
- 方法出现在类声明中如果函数和过程头,而没有主体。每个方法的定义声明是在程序的其他地方。