All challenges
Multiple ChoiceIntermediate 30s

Go: Method Receivers

func (p Point) Area() uses a:
Options
  1. 1Pointer receiver (mutates the original)
  2. 2Interface receiver (dynamic dispatch)
  3. 3Value receiver (operates on copy)
  4. 4Nil receiver (safe on unset pointers)

Think you can answer under pressure?

Get matched and answer live questions in 3-minute 1v1 battles. Elo ranking, badge tiers and bragging rights on the line.

Play this in a 3-minute battle