What purpose does the main method serve? What code should you, and should you not, put in the main method?
Brief description of DIP , Factory method pattern and OCP in java terms.

No one is going to take your quiz or complete your homework for you.

You dont need to help if you dont want to ..

But your wasting everyones time by posting these type of questions vs needing programming help.

Write a code snippet that shows the problem and ask questions about how to make the code do what you want it to do.

> You dont need to help if you dont want to ..
Or perhaps I could just delete the post altogether and issue a warning for violating the Keep It Organized rule:

Do provide evidence of having done some work yourself if posting questions from schoolwork assignments

If you want help here, demonstrate some effort. Don't just post assignments and expect others to give you the answers.