Objective-C subclasses question
Posted
by Johannes Jensen
on Stack Overflow
See other posts from Stack Overflow
or by Johannes Jensen
Published on 2010-04-14T08:30:19Z
Indexed on
2010/04/14
8:33 UTC
Read the original article
Hit count: 252
I have a class called Level, which is a subclass of NSObject.
Then I have a class called Level_1_1 which is a subclass of Level.
Is it allowed to type like
Level* aLevel = [Level_1_1 alloc];
instead of
Level_1_1* theLevel = [Level_1_1 alloc];
? :)
I try it and I don't get any warnings, just wondering if it's okay to do?
© Stack Overflow or respective owner