class with private constructor cannot be inherited