Create a student class object array of size four having attributes name, designation and salary. Let the student class have appropriate getter/setters methods for accessing these attributes. Initialize these attributes through the setter methods. Store this object into a file “OutObject.txt”. Read the objects from the same file and display the attributes of object through getter methods where name is equal to “rajiv” (ignoring case) else display the following message “The required information is not found in file”.
Share
1 Answer