Yes, it can still work for this specail reason.
But to have good code type, we must follow this rule that subclass should have a slot attribute.