MANAGING NOTIFICATIONS


/ Published in: Java
Save to your folder(s)

heres a comment


Copy this code and paste it in your HTML
  1. /*
  2.   ============================================================================
  3.   MANAGING NOTIFICATIONS
  4.   ============================================================================
  5.   */
  6. private class BloodBankNote extends BloodBank {
  7.  
  8. protected int notifier;
  9.  
  10. BloodBankNote(int iD, BloodBank bB) {
  11. super(bB, bB.getCapacity());
  12. this.increaseBloodLoad(bB.getBloodLoad());
  13. this.notifier = iD;
  14. }
  15.  
  16. int getNotifier() {
  17. return notifier;
  18. }
  19.  
  20. void setNotifier(int iD) {
  21. notifier = iD;
  22. }
  23.  
  24. } // end BloodBankNote class
  25.  
  26. private class DonorNote extends Donor {
  27.  
  28. protected int notifier = 0;
  29.  
  30. DonorNote(int iD, Donor d) {
  31. super(d);
  32. this.notifier = iD;
  33. }
  34.  
  35. int getNotifier() {
  36. return notifier;
  37. }
  38.  
  39. void setNotifier(int iD) {
  40. notifier = iD;
  41. }
  42. } // end DonorNote class

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.