Home > Java Programming > Abstract > Questions and Answers
Q: |
Given: abstract public class Employee { protected abstract double getSalesAmount(); public double getCommision() { return getSalesAmount() * 0.15; } } class Sales extends Employee { **// insert method here } Which two methods, inserted independently at line **// insert method here, correctly complete the Sales class? (Choose two.) A. double getSalesAmount() { return 1230.45; } B. public double getSalesAmount() { return 1230.45; } C. private double getSalesAmount() { return 1230.45; } D. protected double getSalesAmount() { return 1230.45; } | ||||||||||
|
Comment on this Question | |
Name: | |
|