Do I have to re-define equality/hashing for NSObject sub-classes?

I forgot; are sub-classes automatically marked as conforming to their base classes protocols? Even if they would do the wrong thing? I'm guessing "yes" to both questions.

For any of the protocols that can have automatic conformance (Equatable, Hashable, Encodable, and Decodable), if I do nothing on a sub-class, will the sub-class' versions of the required members call the base class' version followed by applying the algorithm to the sub-class' new members? Or do I have to reimplement all the required members of the protocol to ensure both the base sub-object and the new members are covered?

Terms of Service

Privacy Policy

Cookie Policy