-
Which one of the following are essential features of an object-oriented programming language?
1. Abstraction and encapsulation
2. Strictly - typedness
3. Type-safe property coupled with sub-type rule
4. Polymorphism in the presence of inheritance
-
- 1 and 2
- 1 and 4
- 1, 2 and 4
- 1, 3 and 4
- 1 and 2
Correct Option: B
Object Oriented Programming (OPP) is a programming paradigm. The language is object oriented as it use objects. Objects are the data structures that contain data fields and methods together with their interactions. The main features of the Programming techniques are
1. data abstraction
2. encapsulation
3. modularity
4. polymorphism
5. inheritance
Therefore, the essential features are given by statements (i) and (iv).