Skip to content

Apurvgeek/java-assignment

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

java-assignment

Write a program to create following scenario: A class Person having: private field: name  to store name of person abstract method: void display()  which will be used to display details of person Use parameterized constructor to initialize these attributes. Make setter & getter methods for the attribute. Make a class Employee which inherits Person class and having: private field: id  to store id of employee date_of_join  to store joining date of employee Use parameterized constructor to initialize these attributes. Make setter & getter methods for the attributes also. Now make a class Test having main() method in which you have to create at least 6 Employee objects and store them in ArrayList. Make another method named serializeObjects() in the same class which will read all the employee-objects from the ArrayList and serialize all those employee-records (in file “records.txt”) whose date of joining is before the year 2015. Now make another method named deserializeObjects() in the same class which will read and display all the records from the file.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages