Multiple choice

Which of the following is/are incorrect about declaring constructor in Objective C?

  1. The constructors are declared with the prefix init.

  2. The constructors are inherited from NSObject class.

  3. -(id)initWithName:(NSString *) aName; is a correct declaration of constructor.

  4. id means that our method will be returning a value that is not yet defined.

  5. None of the above

Reveal answer Fill a bubble to check yourself
E Correct answer
Explanation

All are the correct statements.