What is an instancetype?
Answer / Ashish Soni
In Objective-C, 'instancetype' is a type qualifier that can be used to specify the return type of a method or property. It tells the compiler that the method returns an instance of the class (or a subclass) where the method is defined. Using 'instancetype' can make your code more flexible and easier to maintain.
| Is This Answer Correct ? | 0 Yes | 0 No |
What is gcd?
What is polymorphism in objective-c?
What can’t we put into an array or dictionary?
Is objective c similar to c++?
Explain what is @synthesize in objective-c?
What is #import?
What is objective c & why it is used for?
How to convert data to string in objective c?
What is difference between mutable and immutable?
What is posing in objective c?
When will you use nsarray and nsmutablearray?
What are static attributes?