mirror of
https://github.com/robindhole/fundamentals.git
synced 2025-07-01 15:26:52 +00:00
14 lines
355 B
Python
14 lines
355 B
Python
from abc import ABC, abstractmethod
|
|
import BirdType
|
|
|
|
class Bird(ABC):
|
|
def __init__(self, weight: int, colour: str, size: int, beakType : str, birdType : BirdType) -> None:
|
|
self.__weight = weight
|
|
self.__colour = colour
|
|
self.__size = size
|
|
self.__beakType = beakType
|
|
self.__birdType = birdType
|
|
|
|
@abstractmethod
|
|
def makeSound(self) -> None:
|
|
... |