Search⌘ K
AI Features

Challenge 1: Cars and Engines!

Explore how to implement object relationships in Python by creating a Sedan class that inherits from Car and composes a SedanEngine object. Learn to manage composition, inheritance, and method calls while practicing coding with a real-world example of cars and engines.

Problem statement

You have to implement a Sedan class, which inherits ...