Previous Next
0 / 15
Module DEMO-33-72DEMO-OOP-33

Delivery Bike Inheritance

DEMO-OOP-33 โ€ข Object Oriented Programming

Browser-only practice

Problem Statement

Create a transport base class and a delivery-bike subclass, then print the inherited delivery report.

Input Format

Input is given as whitespace-separated tokens for the base-class fields first, followed by the child-class fields.

Output Format

Print the exact multiline report required by the problem.

Sample Testcases

Submit runs every public testcase in this browser. Results and code never leave this device.

Sample #1
Public sample
B10
35
12
Plate: B10
Speed: 35
Deliveries: 12
Input: plate code = "B10", speed = 35, deliveries today = 12.
Key calculation(s): "Plate: " + "B10" = "Plate: B10" | "Speed: " + 35 = "Speed: 35".
Output:
Plate: B10
Speed: 35
Deliveries: 12
Sample #2
Public sample
B11
28
5
Plate: B11
Speed: 28
Deliveries: 5
Input: plate code = "B11", speed = 28, deliveries today = 5.
Key calculation(s): "Plate: " + "B11" = "Plate: B11" | "Speed: " + 28 = "Speed: 28".
Output:
Plate: B11
Speed: 28
Deliveries: 5

Web terminal

C, C++, Java, and Python run locally in a browser VM. No worker or visualizer is used.

Saved in this browser
Editor settings