|
Abstract Classes Questions
Start with this example - you can work with a neighbor and submit to the sub or email.
Quiz22a (For all of these, you can put them in Bluej)
- What method/methods must a class that extends StaffMember override?
- What method/methods must a class that extends Employee override?
- If we had a Volunteer Vlad, what methods can you call on it?
- Explain what the first line of the constructor of hourly employee does.
- Explain what the line super.pay() does in the pay method of Executive.
- If you have a Volunteer Vlad and an Hourly employee named Aaron, what methods would you be able to call on each one of them?
|