Problem Statement
Create a cargo-truck subclass that extends a vehicle base class and prints the remaining capacity report.
DEMO-OOP-33 โข Object Oriented Programming
Create a cargo-truck subclass that extends a vehicle base class and prints the remaining capacity report.
Input is given as whitespace-separated tokens for the base-class fields first, followed by the child-class fields.
Print the exact multiline report required by the problem.
Submit runs every public testcase in this browser. Results and code never leave this device.
T1 1000 300
Plate: T1 Capacity: 1000 Remaining Capacity: 700
T2 800 800
Plate: T2 Capacity: 800 Remaining Capacity: 0
C, C++, Java, and Python run locally in a browser VM. No worker or visualizer is used.
/workspace/question