advertisement

Article:
  The Objective-C Language
Subject:   + initialize and - init /not/ compared to constructors in C++
Date:   2001-05-07 21:08:18
From:   gskluzacek
Response to: + initialize and - init /not/ compared to constructors in C++

Heck, I didn't mean to open a can of worms. I just wanted to say I like the way C++ implicitly calls the constructor of a class to initialize the object, where it looks like you have to explicitly allocate memory and initialize the object in Obj-C. While not being anything except a beginer in Obj-c, I was just wondering why the designers of the language decided to go with this explicit route of initializing its objects. Seams to me IMHO, like there be more room for error.


Regards,
Greg


1 to 1 of 1
  1. Michael Beam photo + initialize and - init /not/ compared to constructors in C++
    2001-05-08 12:27:34  Michael Beam | O'Reilly Author [View]

1 to 1 of 1