Ask your own question, for FREE!
Computer Science 11 Online
OpenStudy (anonymous):

What are the differences between C++ and Objective-C, and which is the more powerful language?

OpenStudy (anonymous):

All I know is that both languages are directly descended from C, with C++ grabbing stuff from an old OO language called Simula67 and Objective-C following Smalltalk's idea of OO.

OpenStudy (shadowfiend):

They're very different approaches to OO. Most simply, everything in Objective-C is dynamic. C++ is static. When you invoke a method in C++, by default the code that is called is hardcoded in the resulting assembly. If you declare it virtual, a virtual table is set up for polymorphic runtime lookups. In Objective-C, if you send an object a message (the Smalltalk/Objective-C equivalent of invoking a method), it always goes through a table. This gives you some extra flexibility. For example, it's possible in Objective-C to create a method, if you will, that handles any method that isn't defined. Objective-C and Smalltalk are all about sending messages to objects, so it's a completely different thought paradigm.

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Latest Questions
Breathless: Spooky witch but cute
5 hours ago 3 Replies 0 Medals
Arriyanalol: help
5 hours ago 10 Replies 2 Medals
Arriyanalol: @tinydinoUwU stop trying to find a argument u blad lil boy
1 day ago 5 Replies 4 Medals
Jaded012023: Please tell me what you all think of this song
8 hours ago 6 Replies 1 Medal
Arriyanalol: bro how
8 hours ago 2 Replies 3 Medals
Arriyanalol: cant wait for the new bluey movie in 2027
1 day ago 12 Replies 2 Medals
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!