So you want to build a dog... out of interfaces

Report a typo

Suppose you're provided with the following interfaces...

interface Animal {}

interface Fish : Animal {}

interface Bird : Animal {}

// Has the capacity to bite
interface Biting {}

// Has the capacity to purr. As cats do.
interface Purring {}

// Has the capacity to bark!
interface Barking {}

// Has the capacity to move
interface Moving {}

// Has the capacity to walk
interface Walking : Moving {}

// Has the capacity to fly
interface Flying : Moving {}

// Can walk upright, using 2 limbs
interface Bipedal : Moving {}

// Has the capacity of intelligible speech
interface Talking {}

Which of them would you implement when programming a Dog class?

Select one or more options from the list
___

Create a free account to access the full topic