Welcome! Log In Create A New Profile

Advanced

Assignment 2 - Question 5

Posted by Ryan Botha 
Announcements Last Post
Announcement : Programming Students at UNISA School of Computing 06/19/2019 02:01PM
Announcement SoC Curricula 09/30/2017 01:08PM
Announcement Demarcation or scoping of examinations and assessment 02/13/2017 07:59AM
Announcement School of Computing Short Learning Programmes 11/24/2014 08:37AM
Announcement Unisa contact information 07/28/2011 01:28PM
Assignment 2 - Question 5
May 01, 2008 04:49PM
Hey,

Are they wanting us to write 4 different classes, perhaps 3 of them inheriting from employee?

If the ComputePay() function is used, what should the output be? Surely we need to calculate a payment amount?

Anyone see this question differently?
Re: Assignment 2 - Question 5
May 02, 2008 07:37AM
Yes, one abstract and three concrete classes deriving from it. ComputePay() is calculating pay differently for each kind of employee.
Re: Assignment 2 - Question 5
May 04, 2008 07:09PM
Question 5 had me stumped for a while... forgot to do the casting at the right place...

Anyway, good luck to all the others
Sorry, only registered users may post in this forum.

Click here to login