+ 1
Is everything an object in Swift?
I have seen in the tutorial that String has some methods associated with it. So is everything an object in Swift, like in Ruby? Or are Int, Character, Bool etc. primitives like in Java?
1 Resposta
- 1
any "thing" that derived from a class is an object that is an instance of that class