Python, Programming, Data Science, Artificial Intelligence, Data.
These interfaces define the fly and swim methods, respectively, as abstract methods. The Duck class implements both the Flyable and Swimmable interfaces by providing concrete implementations of the fly and swim methods. The Airplane class, on the other hand, only implements the Flyable interface.