Home>

A developer who has long been developing in Java.
I started touching Swift recently, but let me ask you one question.

I heard that Swift is mainly implemented using "Delegate" when describing events.
In any sample, the implementation method was like defining the delegate method in the source by arranging the delegate protocol after the ":" in the class declaration.

Is it possible to define the implementation in the source like an anonymous class of Java interface without writing the protocol name at the time of class declaration?