Hello,

I know Java and Objective C are totally different languages, but I thought may be since both are object oriented languages, there maybe some similarities between the two to help me make the transition. I also know C, so some of the stuff is looking similar.

Could someone help me figure out how to code in Obj-C?

Here's what I know so far:
- and + in front of a method is like a non static and a static method in Java

both have Object as their parent class (although I don't know if it's needed in Obj-C)

currently I'm trying to figure out why you need to alloc and then init. I know alloc allocates the space, but I don't know what init does. I still figuring out how a constructor looks like in Obj-C

Is this really the right forum for this question? Just Google Objective C tutorials and see if they follow the same path Java tutorials take. This is the Java forum, help with Java, not Objective C.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.