Java Program help !!!

2006-11-28 4:43 pm
Can we declare the new mrthod as private in sub-class when overidde a super class that is defined as public?

回答 (1)

2006-11-28 5:36 pm
✔ 最佳答案
No, the access level of the overriding method CANNOT be more restrictive than that of the overridden method.
參考: Sun Certified Programming for Java 5


收錄日期: 2021-04-13 21:27:32
原文連結 [永久失效]:
https://hk.answers.yahoo.com/question/index?qid=20061128000051KK00646

檢視 Wayback Machine 備份