Changes

Jump to: navigation, search
no edit summary
So far in this series of chapters covering object oriented programming with Objective-C we have focused exclusively on static class typing and binding. In this chapter we will look at concepts referred to as ''dynamic typing'' and ''dynamic binding'' and how the Objective-C ''id'' type is used in this context.
== Static Typing vs . Dynamic Typing ==
In previous chapters, when we have created an instance of a class we have done so by specifically declaring the type of object we are creating. For example, when we created an instance of our BankAccount class, we created a variable of type ''BankAccount'' to store the instance object:

Navigation menu