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 |
What is the main difference between function calls and messages?
What are the classifications of property?
What is an nsobject?
What is the use of objective c?
Is objective c garbage collected?
Why is objective c syntax so weird?
How we can layout subviews in a view?
What is better objective c or swift?
What is a function file?
Does objective c have garbage collection?
How to convert data to string in objective c?
What is a category in objective c?