Beginner Go (Golang)
Q10 / 100

What is an interface in Go?

Correct! Well done.

Incorrect.

The correct answer is B) A type defining a set of method signatures; any type implementing all methods implicitly satisfies the interface

B

Correct Answer

A type defining a set of method signatures; any type implementing all methods implicitly satisfies the interface

Explanation

type Writer interface { Write([]byte) (int, error) } — any type with a Write method satisfies Writer without explicit declaration.

Progress
10/100