1Z0-852 Web TestEngine demo

Exit VCEDump 1Z0-852 Java Standard Edition 6 Programmer Certified Professional Upgrade
Question 12 of 15
0% complete
Q12 Single choice

Given:

21. class Money {
22. private String country = "Canada";
23. public String getC() { return country; }
24. }
25. class Yen extends Money {
26. public String getC() { return super.country; }
27. }
28. public class Euro extends Money {
29. public String getC(int x) { return super.getC(); }
30. public static void main(String[] args) {
31. System.out.print(new Yen().getC()
+ " " + new Euro().getC());
32. }
33. }

What is the result?

Sign in to mark questions

Sign in to save marked questions and return to this demo.

Sign in