r/simpleios • u/genericprogrammer • Jun 17 '16
[Question]AnyObject in Swift vs Object in Java
For anyone who has experience with both languages is it safe to say that AnyObject in Swift works the same way as Object in Java?
5
Upvotes
View all comments
Show parent comment
2
u/Danappelxx Jun 17 '16
This is wrong. All types in Swift implicitly conform to Any. All classes conform to AnyObject.