Interfaces in Go are satisfied _____.

  • Implicitly
  • Explicitly
  • During runtime
  • At compile-time
Interfaces in Go are satisfied implicitly. This means that a type is considered to satisfy an interface if it implements all the methods specified by that interface, without explicitly declaring that it does so. This design allows for flexibility and decoupling between interface definitions and concrete types, making Go's interface system quite dynamic and versatile.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *