Complete the Car class's overridden describe() method so it reports the registration and number of doors, then print the result.
Input / Output
Input: line 1 is the registration, line 2 is the number of doors. Output: "Car <registration> with <doors> doors"
Examples
Input
CA123GP 4
Expected Output
Car CA123GP with 4 doors
Input
GP456MP 2
Expected Output
Car GP456MP with 2 doors
+ 1 hidden test checked on Submit.
Main.java is the entry point. Add extra classes for OOP exercises — they compile together.
Run your code to see test results here.