Home Iphone Objectivec Message Expressions and comments



Message Expressions and comments
Posted on: May 23, 2009 at 12:00 AM
Like C and C++ objective-C provides comments. Programmer can use single or multi line comments in the code according to the need.

Message Expressions and comments

     

Like C and C++ objective-C provides comments. Programmer can use single or multi line comments in the code according to the need. Message expressions are enclosed in square brackets.

Message Expressions in Objective-C

Message expressions are enclosed in square brackets as given below:
[receiver message]

Receiver can be a variable or expression that evaluates to an object (including the variable self)
■ A class name (indicating the class object)
■ super (indicating an alternative search for the method implementation)
The message is the name of a method plus any arguments passed to it.

Comments
Like C and C++ comments // and /*- - - - */ are allowed.
For example:

  1. 00080">// comment.
  2. /* comment.
      Comment. */

Related Tags for Message Expressions and comments:
ciosedexpressionmessagecloseexpressionsexpressrackssiebracketsinmsageosclosedosclesagemeacksquaresssaessrackpressprearclossaxpssprono


More Tutorials from this section

Ask Questions?    Discuss: Message Expressions and comments  

Post your Comment


Your Name (*) :
Your Email :
Subject (*):
Your Comment (*):
  Reload Image
 
 

Ask Questions?

If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.

Ask your questions, our development team will try to give answers to your questions.