Vehicle Inheritance

MediumGrade 12

Complete the TCar 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.

Files

Main.pas is the entry point. Add extra units for OOP exercises — they compile together.

Main.pas
Loading...

Run your code to see test results here.