Create a console application that meets the following requirements:
- Use OOP features: classes, inheritance, polymorphism, and encapsulation.
- Each class must have a comprehensive name and informative content.
- Inheritance should only be used when it makes sense.
- When coding, java code conventions must be used.
- Classes must be properly divided into packages.
- Working with the console or console menu should be minimal.
Exercise:
- Determine the hierarchy of vegetables. Make a salad. Calculate calories.
- Sort vegetables for a salad based on one of the parameters.
- Find vegetables in the salad that fall within a given calorie range.