Question: CODE IN JAVA: Write program to demonstrate the knowledge of students in File handling. Eg., Define a class 'Donor' to store the below mentioned details
CODE IN JAVA:
Write program to demonstrate the knowledge of students in File handling.
Eg., Define a class 'Donor' to store the below mentioned details ofa blood donor.
Name, age, Address, Contactnumber, bloodgroup, date of last donation
Create 'n' objects of this class for all the regular donors at Vellore. Write these objects to a file. Read these objects from the file and display only those donors' details whose blood group is 'A+ve' and had not donated for the recent six months.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
