2 ms·
Yes, exactly. Nail on the head. When I do have a datatype that needs to be handled differently based on some condition, I tend to use ABC's with only one level
by kyllo 7y ago
Yes, exactly. Nail on the head.
When I do have a datatype that needs to be handled differently based on some condition, I tend to use ABC's with only one level of concrete subclasses, just to make that implicit method interface explicit.