問題文
A developer gives one listed entry a body and puts a method header inside it that ends at a semicolon with nothing after it. What does the compiler report?
選択肢
- The compiler turns that file away because a body attached to one listed entry takes on modifiers copied from wherever it was mentioned first and that ban sits on top of the ones a nameless class carries.
- The compiler turns that file away because a body attached to one listed entry gets folded into a shape standing alone at package level and that ban sits on top of the ones a nameless class carries.
- The compiler turns that file away because a body attached to one listed entry is barred from leaving a member to be filled in later and that ban sits on top of the ones a nameless class carries.
- The compiler turns that file away because a body attached to one listed entry loses its link to fields kept by that outer kind and that ban sits on top of the ones a nameless class carries.