You might have used that one without being aware of
it.
n! is number of ways you can arrange a sequence of n objects.
The number of possible sequences of A,B,C,D, is 4 ! which is 24. save you working out how big an array you need to store them all.
Not often it comes in handy, but it can.
I use polymorphism a fair bit in my job.