Marker interface pattern: Difference between revisions

Content deleted Content added
Quagmire (talk | contribs)
added the paragraph about unwanted inheritance of interfaces in Java.
No edit summary
Line 9:
Still, this is generally a good idea, as subclasses usually ''do'' inherit behaviors from their parents and should inherit the marker interfaces as well.
 
==Critique==
This pattern is rather specific to Java. Other object models support richer ways of quickly querying static data. For example, .NET supports attributes that can be used to associate any type of data with a class or with its members.
[[Category:Software design patterns]]