What is difference between method and constructor?
Answer / Praveen Kumar Awasthi
In Objective-C, a method is a function that can be called on an object. A constructor, on the other hand, is a special type of method used to initialize an instance of a class. In Objective-C, there are no constructors like in some other programming languages. Instead, objects are usually initialized using their designated initializer or alloc/init methods.
| Is This Answer Correct ? | 0 Yes | 0 No |
Is objective c faster than swift?
How do I open .m files?
Is swift based on objective c?
What are the 5 performance objectives?
Is objective c compiled?
What is mark and sweep algorithm?
What are the adavantages of gcd over nsthread?
What are blocks and how are they used?
Is objective c type safe?
Is closure a function?
Explain what do you mean by dot notation?
Is c++ similar to objective c?