Which of these types can be declared weak?
Task
For which of these declarations will weak var x: T? compile?
class Bull {}
struct Shovel {}
enum Tool {}
protocol Machine {}
protocol Builder: AnyObject {}
typealias Count = Int
The rest of this answer, with code and interview follow-ups, is in the DevPrep app.
Read the full answer in DevPrep