Forgot to commit
[mono.git] / mcs / docs / ecma334 / 20.2.1.xml
1 <?xml version="1.0"?>
2 <clause number="20.2.1" title="Interface methods">
3   <paragraph>Interface methods are declared using interface-method-declarations: <grammar_production><name><non_terminal where="20.2.1">interface-method-declaration</non_terminal></name> : <rhs><non_terminal where="24.2">attributes</non_terminal><opt/><keyword>new</keyword><opt/><non_terminal where="17.5">return-type</non_terminal><non_terminal where="9.4.2">identifier</non_terminal><terminal>(</terminal><non_terminal where="17.5.1">formal-parameter-list</non_terminal><opt/><terminal>)</terminal><terminal>;</terminal></rhs></grammar_production></paragraph>
4   <paragraph>The attributes, <non_terminal where="17.5">return-type</non_terminal>, identifier, and <non_terminal where="17.5.1">formal-parameter-list</non_terminal> of an interface method declaration have the same meaning as those of a method declaration in a class (<hyperlink>17.5</hyperlink>). An interface method declaration is not permitted to specify a method body, and the declaration therefore always ends with a semicolon. </paragraph>
5 </clause>