Class declaration syntax:
class <class name>: <superclass>, <adopted protocols> {
<declarations>
}
Your ad ViewControllercontains rex.age = 2, which in itself is not an ad, it is an operator - in particular a binary expression with an infix operator.
source
share