Object-Oriented Design Principles

?

Object-Oriented Design Principles

Specification

Know why the object-oriented paradigm is used.

Be aware of the following object-oriented design principles:

  • encapsulate what varies
  • favour composition over inheritance
  • program to interfaces, not implementation

Why is Object-Oriented Programming Used?

Object-oriented programming provides programs with a clear structure that makes developing and testing programs easier for developers. Using the paradigm also allows for large projects to be divided among a team of developers.

The use of classes allows code to be reused throughout the same program and even in other programs. This improves the space efficiency of code.

Object-Oriented Design Principles

There are three design principles used

Comments

No comments have yet been made