Which one of the following are essential features of object oriented language?…
20172023
Which one of the following are essential features of object oriented language?
A. Abstraction and encapsulation
B. Strictly-typed
C. Type-safe property coupled with sub-type rule
D. Polymorphism in the presence of inheritance
- A.
A and B only
- B.
A, D and B only
- C.
A and D only
- D.
A, C and D only
Attempted by 8 students.
Show answer & explanation
Correct answer: C
Correct answer: Option C (A and D only)
A is correct because abstraction and encapsulation are core features of object-oriented programming. They help model real-world entities and keep implementation details hidden inside objects.
B is not essential because an object-oriented language need not be strictly typed. Dynamically typed languages can also support object-oriented programming.
C is not essential because type safety coupled with a subtype rule is a type-system property found in some typed languages. It is not a universal defining feature of object-oriented programming.
D is correct because polymorphism in the presence of inheritance is a core object-oriented feature.
Therefore, the essential features among the given statements are A and D only.