What is the difference between c++, objective-c and objective-c++?

16,429

C++ and Objective C were/are two different approaches to adding object orientation to C. Current objective C compilers also accept C++ as input, so you can build a program with some files written in Objective-C and other files written in C++. When C++ is used this way, it's often called Objective-C++.

Share:
16,429
Madan Mohan
Author by

Madan Mohan

Updated on June 03, 2022

Comments

  • Madan Mohan
    Madan Mohan almost 2 years

    I want to know the difference between c++ and objective-c and objective-c++. Can any one give me the difference and Can we use the c++ for iPhone development

    Thank you, Madan Mohan

  • Madan Mohan
    Madan Mohan over 13 years
    Okay, Thank you. Can we use C++ for iPhone development
  • Jerry Coffin
    Jerry Coffin over 13 years
    @Madan: Yes. You need to use at least a little Objective C where your code interfaces with the iPhone's built-in libraries, but you can use C++ for pretty much everything else.
  • justin
    justin over 13 years
    correction: if you use both languages very well and binary size and memory consumption are your top priorities, c++ will typically be the smaller in binary size and memory consumption. added bonus: c++ programs will generally execute faster than objc programs. don't bother rewriting your existing c++ programs as objc programs.