Basic principles of OOP

Basic principles of object-oriented programming (OOP) are follows:

  • Encapsulation is implementation hiding.
  • Inheritance is the creation of a new entity based on an existing one.
  • Polymorphism is the ability to have different forms for the same entity.
  • Abstraction is a set of common characteristics.
  • Sending messages is a form of communication, interaction between entities.
  • Reuse - everything listed above works for code reuse.

This is the only correct order of OOP paradigms, since each subsequent one uses the previous ones.


Read also:


Comments

Popular posts from this blog

Methods for reading XML in Java

XML, well-formed XML and valid XML

ArrayList and LinkedList in Java, memory usage and speed