================================================================================
  Question 18: Inheritance and Method Overriding (Vehicle & Car)
================================================================================

FULL QUESTION:
Create a base class Vehicle with:
- Attributes: brand, model
- Method: display_info() that prints brand and model.

Create a derived class Car inheriting from Vehicle with:
- Additional attribute: seating_capacity
- Override display_info() using super() to display brand, model, and seating capacity.

SHORT QUESTION:
Vehicle base class and Car derived class demonstrating OOP inheritance and method overriding with super().

================================================================================
README & SETUP INSTRUCTIONS:
================================================================================
# Question 18: Inheritance and Method Overriding (Vehicle & Car)

- Prerequisites: Python 3.x (Standard library only).
- Setup: None.
- How to Run: python question_18.py
- Expected Behavior: Demonstrates object creation, base method inheritance, and extended overridden method behavior using super().

================================================================================
SOURCE CODE FILES:
================================================================================

1. question_18.py
--------------------------------------------------------------------------------
class Vehicle:
    def __init__(self, brand, model):
        self.brand = brand
        self.model = model

    def display_info(self):
        print(f"Brand : {self.brand}")
        print(f"Model : {self.model}")

class Car(Vehicle):
    def __init__(self, brand, model, seating_capacity):
        super().__init__(brand, model)
        self.seating_capacity = seating_capacity

    def display_info(self):
        super().display_info()
        print(f"Seating Capacity : {self.seating_capacity}")

vehicle = Vehicle("MINI Cooper", "Convertible")
vehicle.display_info()

car = Car("BMW", "X5", 5)
car.display_info()
--------------------------------------------------------------------------------
