Given:



What is the result?

A.

Read Java Programming
View http://ebook.com/ebook

B.

Read Java Programming
Read http://ebook.com/ebook

C. The EBook.java file fails to compile.
D. The Test.java file fails to compile.

題解

Test類別會編譯失敗,因為Book物件的read方法是private可見度,第5行和第7行都會編譯失敗。