【初心者】Java質問・相談スレッド127【歓迎】
■ このスレッドは過去ログ倉庫に格納されています
0673デフォルトの名無しさん
2009/06/25(木) 00:54:23ありがとうございます。
http://java.sun.com/docs/books/tutorial/java/javaOO/accesscontrol.html
...
The protected modifier specifies that the member can only be accessed within its own package (as with package-private) and, in addition, by a subclass of its class in another package.
...
と書いてあって、Object のサブクラス Test から Object#clone() を呼べそう
に思えるのですが、うーむ、何を勘違いしているんだろう。
■ このスレッドは過去ログ倉庫に格納されています