>4-37 문제
다음 중 redefine method에 대해 틀린 것은?
1. inherited method can be in the different section as the definition of original method.
2. Inherited method can be redefined in subclass.
3. Static method can be redefine.
4. A class shares its non-private static attributes with all its subclass.
5. User can only redefine instance methods.
답이 2,4 번 표시되어 있는데.. 제가 알기론 2번, 4번은 맞는 걸로 아는데요. ^^;
아시는 분 답변 부탁드려여...
댓글 5
-
신팅
2008.03.21 22:50
-
신서리
2008.03.22 00:39
틀린거면 1,3,5인거 같은데요...
저도 처음에 이문제 헷갈렸는데 1,3,5가 맞는거 같아요..
-
부르릉
2008.03.22 00:50
넹..감사합니다... ^^;
-
자이
2008.03.22 02:15
5번도 맞는 답입니다.
답은 1,3이 맞습니다.
아래 내용 참고 하세용..
Redefining method :
The Redefinition statement for the inherited method must be in the same section as the definition of the original method. Inherited methods can be redefined in subclasses. Redefine methods must be re-implemented in subclasses. The signature of redefined methods cannot be changed. Static methods cannot be redefined. A class shares its non-private static attributes with all its subclasses. User can only redefine instance methods.
-
부르릉
2008.03.22 02:29
감사합니다.. ^^;
제거에는 1,3,5가 답으로 나오네요.