I'm new to Java and I'm currently learning about abstract methods and they sound exactly like Protocol
methods in Swift. They are both methods that must be implemented and cannot have a default implementation.
However, when I Google, "Are Java abstract methods the same as Swift Protocol methods," all of the answers basically say that Swift doesn't offer abstract methods.
So my questions are:
- Am I right to assume that an abstract method is at least similar to a protocol method?
- What is the key difference between the two?