Assignment
HomeWork 5 : This homework must be completed independently and in your own code
Completion requirements
- Write a Java program to create a class called "Shape" with abstract methods for calculating area and perimeter, and subclasses for "Rectangle", "Circle", and "Triangle".
- Write a Java program to create a class called "Person" with a name and age attribute. Create two instances of the "Person" class, set their attributes using the constructor, and print their name and age
- 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 "Student" with a name, grade, and courses attributes, and methods to add and remove courses.