Sealed classes and working overloading