Object Oriented Concept in Objective-C
Object Oriented Concept in Objective-C
|
OOP in iOS |
- Whenever programing language support OOP concept then it’s called Object Oriented Programming Language.
- In any OOP language we having four OOP concept i.e AEIP
- 1)Abstraction
- 2)Encapsulation
- 3)Inheritance
- 4)Polymorphism
- Abstraction – It is a concept of providing the information an entity without any implementation.
- Encapsulation – It is a concept of providing the security for the data with the help of private or protected variables.
- Polymorphism – It is a concept of implementation of method multiple time with same name.
- Inheritance – Deriving the properties of base class to derived class is called inheritance. In Objective C, we having two types of inheritance i.e
- 1)Single inheritance
- 2)Multilevel Inheritance Single inheritance – When we are deriving a class from single base class it is called single inheritance. Multilevel inheritance – Deriving a class from an exisiting derived class is called multilevel inheritance.
No comments:
Post a Comment