Theory ofIntelligence
← PRACTICE/
Easy
Python• OOP

Vehicle Hierarchy

Create a base Vehicle class with common attributes like speed and fuel.

Derive Car, Bike, and Truck classes that inherit and add specific features (e.g., Car has num_doors). Override a move() method differently for each subclass.

OOP Focus: Inheritance basics.

Note: This is statement-only in the current Practice version; stdout should be empty.

Sample Test Verification
1 Test Case
Statement & Architecture VerificationThis drill validates class blueprints, object attributes, and method state transitions without requiring console printing.
solution.py
Initializing Monaco Python Environment...
Input (stdin)
(empty string)
Expected Output (stdout)
(no output expected)