KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
This may seem like trivial question. But why is that we have to use the asterisk symbol when declaring object variables Like, we do Car * mazda = [[Car alloc] init]; What's the importance of the asterisk, I mean the compiler already knows it's an object, I'm sure the compiler can be trained not to complain about it. But then again by omitting it, I get an error message "statically allocating instance of objective-c class NSObject" What purpose would that serve?
Tags (comma-separated)
Save Edits
Cancel