Skip to content

A Python project showcasing inheritance through a simple vehicle system.

Notifications You must be signed in to change notification settings

Dhruv-Cmds/Vehicle-System

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

2 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Author

Dhruv

πŸš— Vehicle System (Inheritance in Python)

A simple and beginner-friendly Python project that demonstrates inheritance using a real-world vehicle example.
This project shows how child classes can reuse and extend the behavior of a parent class using Object-Oriented Programming.


πŸ“– Description

The Vehicle System is built around a base Vehicle class that contains common attributes such as speed and fuel type.
Two child classes, Car and Bike, inherit from this parent class and introduce their own unique behaviors.

This project is ideal for understanding how inheritance helps reduce code duplication and improves structure.


🧠 OOP Concepts Used

  • Inheritance
  • Parent and child classes
  • Method reuse
  • super() keyword

✨ Features

  • Common vehicle attributes shared across classes
  • Car-specific functionality (open trunk)
  • Bike-specific functionality (kick start)
  • Clean and readable object-oriented design

πŸ›  Tech Stack

  • Language: Python 3
  • Programming Paradigm: Object-Oriented Programming (OOP)

πŸš€ How to Run

python vehicle_system.py