Câu 38: GSSP-Java: GIAC Secure Software Programmer-Java
You work as a Software Developer for Relix Inc. You have written the following code. class Test {protected void show(){}}Now you want to override the method show() in the subclass of Test. Which of the following access specifiers can you use to override this method?Each correct answer represents a complete solution. C…
Nội dung câu hỏi
You work as a Software Developer for Relix Inc. You have written the following code. class Test {protected void show(){}}Now you want to override the method show() in the subclass of Test. Which of the following access specifiers can you use to override this method?Each correct answer represents a complete solution. Choose two.
Các lựa chọn
Đáp án được giữ gọn theo nhãn A, B, C, D trong phần bình chọn tương tác.
- A. protected — đáp án hiện tại
- B. default (no access specifier)
- C. private
- D. public — đáp án hiện tại
Cộng đồng
0 bình luận công khai. Tên thành viên được ẩn một phần.