You'd make the constructor of the class private, a...
# announcements
k
You'd make the constructor of the class private, add/keep the
Class<K>
as a constructor parameter and hide that behind a factory function with
K
as a reified parameter.