What is the B4 equivalent of a Xojo Interface or a Swift Protocol?

Confusing Protocols and Delegates with Namespace? Classes? or Struct? wow

I never used Interfaces in Xojo… but I do use Protocols and Delegates in Swift… ALOT