Marker Interfaces
Home ] Up ] What's The Problem? ] The Solution ] Why Is That Better? ] Multiple Inheritance ] What is an Interface? ] Nouns vs. Adjectives ] Interface Inheritance ] [ Marker Interfaces ]

 

 

Surprisingly, it is possible to define an interface that is entirely empty!

Why is this useful?

A class can implement this interface simply to provide additional information about itself.

We will soon see an example of a marker interface (Cloneable).

 

This page was last modified on 02 October, 2007