PRACTICE / UNDERSTAND / REPEAT

Go: Interfaces

Practice interfaces with self-contained questions. Check your answer, then use the explanation to understand the reasoning.

16 questionsAnswers explainedFree · no login
Question 1 of 16
Interfaces · MCQQuestion link ↗

How does a concrete type declare that it implements an ordinary Go interface?

Choose one answer
Answer & explanation

Answer: By having the required method set; no explicit declaration is needed

Interface satisfaction is implicit and depends on method sets.