PRO192_-_C2_-_FE_-_SU_2023_398.webp
T

PRO192_-_C2_-_FE_-_SU_2023_398.webp

Answer (Choose 1 answer)
Assume that country is set for each class.Given:
10. public class Money {
11. private String country, name;
12. public String getCountry() { return country; }
13.)and:
24. class Yen extends Money {
25. public String getCountry() { return super.country; }
26.}
28. class Euro extends Money {
29. public String getCountry(String timeZone) {
30.return super.getCountry();
31. }
32.}
Which is true?
A. Yen returns correct country value.
B. Euro returns correct country value.
C. Compilation fails because of an error at line 30.
D. Yen and Euro both return correct country value.
E. Compilation fails because of an error at line 25.
7

Thông tin

Category
PRO192
Thêm bởi
Thái Dương1
Ngày thêm
Lượt xem
2,974
Lượt bình luận
20
Rating
0.00 star(s) 0 đánh giá

Image metadata

Filename
PRO192_-_C2_-_FE_-_SU_2023_398.webp
File size
61.4 KB
Dimensions
1542px x 690px

Share this media

Back
Bên trên Bottom