If I have 4 distinct Java types (call them A B C D), and A is a subtype of B and A is a subtype of C and B is a subtype of D and C is a subtype of D, is this legal? Are there any examples out there?
Drawing the diagram:
D
| |
| |
B C
| |
| |
A
So D is the supertype. Thanks!