Abstraction
Example with abc
abcfrom abc import ABC, abstractmethod
class Vehicle(ABC):
@abstractmethod
def start_engine(self):
pass
class Motorcycle(Vehicle):
def start_engine(self):
print("Engine started")Key Idea
Last updated