摘要:One of the most important concepts in object-oriented programming is that of inheritance. Inheritance allows us to define a class in terms of another
阅读全文
摘要:All Objective-C programs are composed of the following two fundamental elements: Program statements (code): This is the part of a program that perform
阅读全文
摘要:Objective-C allows you to define protocols, which declare the methods expected to be used for a particular situation. Protocols are implemented in the
阅读全文
摘要:NSLog method In order to print logs, we use the NSLog method in Objective-C programming language which we have used right from the Hello World example
阅读全文
摘要:There may be a situation, when you need to execute a block of code several number of times. In general, statements are executed sequentially: The firs
阅读全文
摘要:Fast enumeration is an Objective-C's feature that helps in enumerating through a collection. So in order to know about fast enumeration, we need know
阅读全文
摘要:Memory management is one of the most important process in any programming language. It is the process by which the memory of objects are allocated whe
阅读全文
摘要:What is an Expression? The most basic expression consists of an operator, two operands and an assignment. The following is an example of an expression
阅读全文
摘要:In Objective-C programming language, in order to save the basic data types like int, float, bool in object form, Objective-C provides a range of metho
阅读全文
摘要:The word polymorphism means having many forms. Typically, polymorphism occurs when there is a hierarchy of classes and they are related by inheritance
阅读全文