Machine-translated by Google. Questions are authored in English.
Top

Discussion

Object Oriented Programming satisfies the criteria of

  • A.polymorphism
  • B.encapsulation
  • C.inheritance
  • D.All of the above

Answer: D

Object oriented programming satisfies all of the above.

The main features of OOP are encapsulation (bundling data and the methods that act on it, and hiding internal details), inheritance (deriving new classes from existing ones), and polymorphism (one interface, such as a method name, behaving differently for different object types). Abstraction is usually listed as the fourth.

Since all three listed criteria are core OOP principles, choosing any single one would leave out the other two.

No comment is present. Be the first to comment.
Loading…

Post your comment

Please log in or register to post a comment.