单项选择题

下列方法定义中,正确的是()

A.intx(){charch=’a’;return(int)ch;}
B.voidx(){...returntrue;}
C.intx(){...returntrue;}
D.intx(inta,b){returna+b;}