Java OOP console exercise that models a plant, flower, and season.
This repository is an early Java object-oriented programming practice project. It demonstrates classes, inheritance, composition, scanner input, and console output.
Plantclass for plant name and growth timeFlowerclass extendingPlantSeasonclass composed intoFlower- Interactive console prompts
Main
-> Plant input/output
-> Flower extends Plant
-> Season is attached to Flower
- Java
javac *.java
java MainRun the program and answer the console prompts for plant name, growth time, flower length, color, benefits, blooming behavior, and season.
No screenshots are needed for this console exercise.
Main.javacontrols the console flow.Plant.javastores plant-level fields and output.Flower.javaextendsPlantand adds flower-specific fields.Season.javastores the season name.
Main.java
Plant.java
Flower.java
Season.java
- Public fields and scanner usage could be improved.
- The project is useful as a learning artifact but not as an AI Engineer portfolio project.
- No tests are present.
- Archive or mark as early coursework.
- Refactor with constructors, validation, and unit tests if kept.
No license file is currently present. All rights are reserved by default unless a license is added.
Abdulelah Alkhathami
- Website: abdulelah.de
- GitHub: Abdulel3h