Differentiate between Objective-C and C/C++.

devquora
devquora

Posted On: Feb 22, 2018

 

Objective-CC++
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.

    Related Questions

    Please Login or Register to leave a response.

    Related Questions

    Cocoa Touch Interview Questions

    What do you understand by cocoa?

    Cocoa is a suite of object-oriented software libraries that develop OSX and iOS apps. Cocoa is an application environme..

    Cocoa Touch Interview Questions

    Elaborate on the meaning of Application Kit.

    Application kit is a framework that contains all the objects and details needed to implement the graphical and event-dri..

    Cocoa Touch Interview Questions

    What does cocoa offers?

    Cocoa offers numerous benefits to its users. It supports event-driven behavior that helps in managing applications, win..