Advertisements

question on Tagging interface

Postby Richa » Sun Jan 27, 2013 8:35 pm

Offline
Richa
Posts: 2
Joined: Sun Jan 27, 2013 4:44 pm
Tagging interface

in tutorial it is said that tagging interface is designed to

Adds a data type to a class: This situation is where the term tagging comes from. A class that implements a tagging interface does not need to define any methods (since the interface does not have any), but the class becomes an interface type through polymorphism.

but the class becomes an interface type through polymorphism. whad does this line mean? can u explain me with example?