Self In An InterfaceΒΆ
The keyword self in an interface means that interface, not the host class. Hence, using self as return type means that the method must return an object of type i
, not of the host class.
The keyword self in an interface means that interface, not the host class. Hence, using self as return type means that the method must return an object of type i
, not of the host class.