nerdexam
Oracle

1Z0-851 · Question #94

1Z0-851 Question #94: Real Exam Question with Answer & Explanation

Sign in or unlock 1Z0-851 to reveal the answer and full explanation for question #94. The question stem and answer options stay visible for context.

Question

Given: 08. abstract public class Employee { 09. protected abstract double getSalesAmount(); 10. 11. public double getCommision() { 12. return getSalesAmount() * 0.15; 13. } 14. } 16. class Sales extends Employee { 17. // insert method here 18. } Which two methods, inserted independently at line 17, correctly complete the Sales class? (Choose two.)

Options

  • Adouble getSalesAmount() { return 1230.45; }
  • Bpublic double getSalesAmount() { return 1230.45; }
  • Cprivate double getSalesAmount() { return 1230.45; }
  • Dprotected double getSalesAmount() { return 1230.45; }

Unlock 1Z0-851 to see the answer

You've previewed enough free 1Z0-851 questions. Unlock 1Z0-851 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.

Full 1Z0-851 Practice