OOP(Object Oriented Programming), a three lettered magical word on which almost all the modern programming language stand. SWIFT, APPLE’s trending language is no different from this. OOP concepts are the backbone of SWIFT .
Read moreIs Objective C protocol-oriented?
It has protocol extension which gives us common functionality to all types that conforms to a protocol . It prefers to use value type instead of reference type.
Read moreWhat is difference between object oriented programming and protocol-oriented programming?
In the object-oriented paradigm, we focus on what an object is, while the protocol-oriented approach allows us to focus more on what an object can do, its abilities and behaviours. Our simple game was meant to emphasise differences in structuring decisions during the development process using both of these paradigms.
Read moreWhy Swift is protocol-oriented programming?
Swift checks for protocol conformity issues at compile-time, allowing developers to discover some fatal bugs in the code even before running the program. Protocols allow developers to write flexible and extensible code in Swift without having to compromise the language’s expressiveness .
Read more