up previous next contents
Next: Implementing Interfaces Up: Interfaces Previous: Single inheritance versus multiple   Contents

Subsections

Extending Interfaces

  • Interfaces can be extended using the extends keyword.
  • Interfaces can extend more than one interface:
      interface Shimmer extends FloorWax, DessertTopping \{ \ldots
    
  • All methods and constants defined by FloorWax and DessertTopping are part of Shimmer.

Name Conflicts

  • A class or interface can be a subtype of more than one interface.
  • What happens when a method of the same name appears in more than one interface?


up previous next contents
Next: Implementing Interfaces Up: Interfaces Previous: Single inheritance versus multiple   Contents