mirror of
https://github.com/robindhole/fundamentals.git
synced 2025-07-01 15:26:52 +00:00
16 lines
616 B
Python
16 lines
616 B
Python
from Bird import *
|
|
from BirdType import *
|
|
from interfaces.FlyableInterface import *
|
|
from interfaces.FlyingBehaviourInterface import *
|
|
|
|
class Eagle(Bird, FlyableInterface):
|
|
__flyingBehaviour: FlyingBehaviourInterface = None
|
|
def __init__(self, weight: int, colour: str, size: int, beakType: str, birdType: BirdType, flyingBehaviour: FlyingBehaviourInterface) -> None:
|
|
super().__init__(weight, colour, size, beakType, birdType)
|
|
self.__flyingBehaviour = flyingBehaviour
|
|
|
|
def fly(self) -> None:
|
|
self.__flyingBehaviour.makeFly()
|
|
|
|
def makeSound(self) -> None:
|
|
... |