Yes it can have, this is called self-referencing class.
Why it is not a compiler issue ?
Because you create a pointer to the object of same type, not the object.
This is frequently seen in C / C++ data structures like Linked List.
More Related Contents:
- Objective-C get a class property from string
- What’s the difference between the atomic and nonatomic attributes?
- Objective-C ARC: strong vs retain and weak vs assign
- iOS difference between isKindOfClass and isMemberOfClass
- How to validate an url on the iPhone
- didRegisterForRemoteNotificationsWithDeviceToken not called in ios8, but didRegister…Settings is
- Arm64 architecture in xcode 5.1
- How to get a list of points from a UIBezierPath?
- Xcode not automatically creating bridging header?
- iOS detect if user is on an iPad
- Convert JSON feed to NSDictionary
- iOS app error – Can’t add self as subview
- UIAlertView first deprecated IOS 9
- Retrieve all contacts phone numbers in iOS
- iOS Simulator games run very slow (low fps)
- List of class properties in Objective-C
- iOS 7 / Xcode 5: Access device launch images programmatically
- Xcode 6 keeps renaming my app’s directory in iOS8 simulator after each run.
- UITableView inside UIScrollView not receiving first tap after scrollling
- Programmatically open Maps app in iOS 6
- Xcode – ld: library not found for -lPods
- UITableView and UIView with keyboardWillShow
- Google Maps iOS SDK, Getting Current Location of user
- How do I get hour and minutes from NSDate?
- Delete specified file from document directory
- How to make custom UIBarButtonItem with image and label?
- import swift class in objective-c, -Swift.h file not found
- How to manage cookies with UIWebView in Swift
- deferredLocationUpdatesAvailable returns NO in iOS 10
- What size should TabBar images be?