Skip to content

Bug Report for python-polymorphism-with-inheritance #5364

@tallharish

Description

@tallharish

Bug Report for https://neetcode.io/problems/python-polymorphism-with-inheritance

Please describe the bug below and include any steps to reproduce the bug or screenshots if possible.

Hi Navdeep, the Challenge is asking to create a common interface, say animal_sound(). I feel the code on lines 23 to 30 should be calling that instead of the make_sound() method of the objects. Thanks.

def animal_sound(animal: Animal):
    animal.make_sound()

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions