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

Discussion

The object-oriented programming can be seen as an attempt to enhance opportunities for code reuse be making it ease to define new abstraction as :

  • A.Extension or refinement
  • B.Independence
  • C.Containment
  • D.Facult containment

Answer: A

New abstractions are defined as extensions or refinements of existing ones.

Object-oriented programming promotes code reuse through inheritance: a new class (a derived class or subclass) extends an existing class with additional fields and methods, or refines it by overriding some of its methods, while reusing everything else unchanged. This is the standard description of what object orientation adds to plain data abstraction.

Independence is a property of separate modules, not a way of building one abstraction from another. Containment (holding an object of another class as a member) is composition, a different form of reuse, and 'facult containment' is not a term of object-oriented programming.

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

Post your comment

Please log in or register to post a comment.