Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / NewStats: 3,198,869 members, 7,969,624 topics. Date: Tuesday, 08 October 2024 at 11:13 AM |
Nairaland Forum / Science/Technology / Programming / Any Huge Differences Between Objective-c And Regular C? (1409 Views)
I Need A Very Good Java, C++ And Android Developer For A Big Project / Who Will Teach Me C And C++ Programming Language From The Scratch ? / Help A Friend To Learn Java, Php, C#, C And C++ (2) (3) (4)
Any Huge Differences Between Objective-c And Regular C? by Fulaman198(m): 6:34am On Jan 17, 2016 |
Calling all the C unsung heroes: ChinenyeN, Dekatron, Crotonite, etc. etc. I am about to familiarise myself with Objective-C in order to commence projects in iOS development. I wanted to know if there are any significant language differences between Objective-C and C. Thanks in advance my friends. |
Re: Any Huge Differences Between Objective-c And Regular C? by ANTONINEUTRON(m): 9:07am On Jan 17, 2016 |
C is a low-level language used for writing OS and Embedded Systems and It's more closer to the machine. I don't know much about Objective-C; but i know that it's a language created for Mac OSX, for its app creation. 2 Likes |
Re: Any Huge Differences Between Objective-c And Regular C? by Fulaman198(m): 9:13am On Jan 17, 2016 |
ANTONINEUTRON: You are correct young Jedi |
Re: Any Huge Differences Between Objective-c And Regular C? by ANTONINEUTRON(m): 9:15am On Jan 17, 2016 |
Fulaman198:tanx 1 Like |
Re: Any Huge Differences Between Objective-c And Regular C? by Fulaman198(m): 9:51am On Jan 17, 2016 |
ANTONINEUTRON: No problem little bro |
Re: Any Huge Differences Between Objective-c And Regular C? by DonSegmond(m): 1:20pm On Jan 17, 2016 |
Fulaman198:Yes, there is a significant difference. C was created in the 70's for system programming. It was designed for writing Operating Systems and Systems Program, you know command line programs all text. It sufficed and did that job quite well, some might argue that it has changed/grown a bit, but I do wager the reverse that it hasn't changed that much since the ANSI standards was developed. It's simply a procedural language like pascal. Objective C was created for NeXT OS. It was modelled after small talk and is an Object oriented language built on top of C, so we can say that it is a superset of C. all valid C programs will compile in Objective C, but of course not all Objective C will compile with C. With this knowledge, if you wish to learn Objective C, then I urge you not to use a C tutorial but an Objective C tutorial. If you likewise have to learn C, you don't need to, an objective C tutorial will be more than enough. Objective C has objects, C doesn't. The closed thing C for grouping objects is structures and unions, and those cannot have their own methods, unless you place a pointer to a function inside of it. Once you build objects in ObjC, you invoke them with message passing. using the [] syntax which doesn't exist in C. By having objects, ObjC provides for extended classes, abstract classes, interface, multiple inheritance. Methods are defined different
P/S, I will urge you to learn swift instead. It will be a better investment of your time unless someone is going to be paying you to write ObjC code soon. Best of luck. 2 Likes |
Re: Any Huge Differences Between Objective-c And Regular C? by ChinenyeN(m): 10:51pm On Jan 17, 2016 |
I'm not familiar with Swift or Objective C, but from what I hear, you should use Swift if your objective is to develop for iOS. 1 Like |
Re: Any Huge Differences Between Objective-c And Regular C? by Fulaman198(m): 9:01am On Jan 18, 2016 |
Thanks Gents. |
Re: Any Huge Differences Between Objective-c And Regular C? by seunthomas: 4:51pm On Jan 18, 2016 |
objective c is closer to c++ than c. Although you can write objective c like c just like you can write c++ like c. objective c is also closer to the hardware and highly optimized and just like c++ it has high level libraries but like c++ you can decide to get dirty and use the c like part. 1 Like |
(1) (Reply)
Django / Using Shared Hosting For Laravel Website Without SSH / Can NIIT Nigeria Teach Java
(Go Up)
Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health religion celebs tv-movies music-radio literature webmasters programming techmarket Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10) Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 18 |