Dynamic and Static Typing
2004
16-Sep-2015
Updated on 18-Sep-2020
Tarun Kumar
16-Sep-2015Objective-C is a dynamically-typed language, meaning that you don’t have to tell the compiler what type of object you’re working with at compile time. Declaring a type for a varible is merely a promise which can be broken at runtime if the code leaves room for such a thing. You can declare your variables as type id, which is suitable for any Objective-C object.