單項(xiàng)選擇題

在類的定義中,若需要把一個(gè)屬性或方法定義為類成員,而不是實(shí)例成員,則使用的修飾符為()。

A.const
B.final
C.static
D.public

微信掃碼免費(fèi)搜題