Content deleted Content added
→General form: Copyedit: simplify link to static polymorphism |
→In other languages: Added Java comparable classes as example. |
||
Line 92:
==In other languages==
The CRTP makes an appearance in the [[Java language|Java programming language]] standard library where the [[Enum]] class is defined as <code>Enum<T extends Enum<T>></code>. Java programmers use the CRTP in practice when they write a comparable class: <code>class X implements Comparable<X></code>.
==See also==
|