CSS font stacks & developer FAQs with Web standards
Site navigation below

One of hundreds of answers available with our premium content service.

Part answer

A: To illustrate multiple inheritance, consider a Bat, which is a mammal that flies. We might have two interfaces: Mammal, which has a method suckleInfant(Mammal), and Flyer, which has a method fly(). These types would be declared in interfaces, as below.

… full answer hidden

Click for full answers

Premium members click below for full answer
Can you give an example of multiple inheritance with interfaces?

Home · Web fonts · Font stacks · FAQs · Java · CSS · Javascript · HTML · Site manager