class Car(): def move(self): print("ı am moving") class Minibus(): def carry(self): print("carry people") class Bus(Car,Minibus): pass Merceds=Bus() Merceds.move() Merceds.carry()
output :
ı am moving carry people
class car has a move function
class Minibus has a carry function
class Bus has move and carry funtions
pass : bişey yazmamak istediginde yazarsın