Monday, July 14, 2008

PART B Round 2.. Ready... Set...

Meh.. Just confirmed with Mr Kao today. DIE DIE must use inheritance. Though its as useless as ever. Either inherit "Student" to form "Skill" and "Diploma" with NTH inside.. or inherit then create 2 functions of the same name in "Skill" and "Diploma".. In which case, we should have created a virtual function in "Student" to be inherited (the right way to use inheritance). However, we can't do that because in PART A we need to have an array of Students. So that is so #$%^&*()!

So I went to check out the specimen paper markscheme.. Hm..

- Employee class
- Salaried employee class // just create.. ^^
- Hourly employee class // just create.. ^^
- Open files for appropriate classes
- Get record from employee file
- Use employee type // never mention use other 2 classes.. hehe..
- To store data in appropriate object
- Display data using appropriate method(s)
- Validate data
- Use appropriate methods to store new data
- Create updated record
- Write record to uemployee file
- loop (for all records)
- close files

[1 per point, maximum 12 points]

NICE LA!!! Just create the subclasses get 2 marks. Then use "appropriate methods", not necessarily using inheritance the right way.. Lol.. So.. There you have it.

My verdict: JUST USE THE GOD DAMN MOST USELESS INHERITANCE EVER!!! XD


Lets end if off with part of a convo on MSN:
Rodney says:
is everyone spamming u for help
|=-SozoS-=| Anyone needs help?? || C'mon CG24/07, Coursework PART B. Let's go!! || Stop bombarding me 10 at a time.. says:
yes i'm sad
|=-SozoS-=| Anyone needs help?? || C'mon CG24/07, Coursework PART B. Let's go!! || Stop bombarding me 10 at a time.. says:
its like i have no life.
Rodney says:
HAHA

No comments: