Categories
Programming

OOP basic terminology

Basic terminology for OOP:

  • modularity: breaking an application into logical sub-parts, that are easier to code and maintain than a whole.
  • abstraction: classes should be defined as broadly as possible, and only find specifics through inheritance
  • encapsulation: separating and hidding functionality how-to from input-output. Objects are called to accomplish a tasks, we don’t care how they do it.
  • polymorphism: calling the same method can have different results, depending upon the object type.
  • superclass: or base class, another name for the parent class that inherits its properties to any given child class.
  • overriding: redefining the functionality of a given parent method in the child class, by using the same method signature (method name and number of arguments). Final methods can’t be over-ridden: final function myfunc () {…}