Posted On: Feb 22, 2018
Objective-C | C++ |
In Objective-C, the method and the variable have to be of exactly the same name. | In C++, the name of the method and the variable has to be different. |
The message overloading is faked by naming a parameter and we have to mangle the names manually. | C++ does the same work but instead of doing it manually, the compiler does the name mangling for us. |
Object-C doesn’t have references. | C++ enjoys an advantage over Objective-C when it comes to references. |
in Objective-C, templates are not available. | Templates are available in C++ because C++ has strong typing and static bidding. |
For differentiating between class methods, Objective-C uses + and -. | For differentiating between class methods, C++ uses static to specify the factory method. |
Never Miss an Articles from us.
Cocoa is a suite of object-oriented software libraries that develop OSX and iOS apps. Cocoa is an application environme..
Application kit is a framework that contains all the objects and details needed to implement the graphical and event-dri..
Cocoa offers numerous benefits to its users. It supports event-driven behavior that helps in managing applications, win..