/ Published in: Java
heres a comment
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
/* ============================================================================ MANAGING NOTIFICATIONS ============================================================================ */ private class BloodBankNote extends BloodBank { protected int notifier; BloodBankNote(int iD, BloodBank bB) { super(bB, bB.getCapacity()); this.increaseBloodLoad(bB.getBloodLoad()); this.notifier = iD; } int getNotifier() { return notifier; } void setNotifier(int iD) { notifier = iD; } } // end BloodBankNote class private class DonorNote extends Donor { protected int notifier = 0; DonorNote(int iD, Donor d) { super(d); this.notifier = iD; } int getNotifier() { return notifier; } void setNotifier(int iD) { notifier = iD; } } // end DonorNote class