Assignment
HomeWork 4
Completion requirements
- Write a Java program to create a class called "Shape" with a name and color attribute. Create two instances of the "shape" class, set their attributes using the constructor and modify the attributes using the setter methods and print the updated values.
- Write a Java program to create a class called "Book" with attributes for title, author, and ISBN, and methods to add and remove books from a collection
- Write a Java program to create a class called "Employee" with a name, salary, and hire date attributes, and a method to calculate years of service