Explain how to call function in objective-c?



Explain how to call function in objective-c?..

Answer / Bibin Abraham

To call a function in Objective-C, you typically use the dot notation or square bracket notation. Here's an example for both methods:nnDot Notation:n`[objectName methodName];`nSquare Bracket Notation:n`([objectName class]).methodName;`

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Objective-C Interview Questions

Can you use objective c in swift?

1 Answers  


What is objective c and swift?

1 Answers  


What is a protocol in objective c?

1 Answers  


What do you mean by cocoa?

1 Answers  


How do I import a swift file into objective c?

1 Answers  


What is atomic property?

1 Answers  


How is string represented in objective-c?

1 Answers  


Explain the difference in xib/storyboard vs nib?

1 Answers  


What is objective c runtime?

1 Answers  


What do you mean by @synthesize and @dynamic in the objective-c?

1 Answers  


Can we have multiple uiwindows in ios?

1 Answers  


How do I create a bridging header file?

1 Answers  


Categories