Curso-lenguaje-python/catch-all/06_bots_telegram/07_movie2_bot/movie/Movie.py

17 lines
247 B
Python
Raw Normal View History

2024-07-30 00:43:20 +02:00
from abc import ABC, abstractmethod
class Movie(ABC):
id = 0
name = ''
type = ''
@abstractmethod
def __init__(self, name):
self.name = name
self.type = None
def get_name(self):
return self.name