Drupal 8.4.x New Features
- OOPS not Procedural Coding
Drupal 8 is object oriented and Drupal 7 is primarily procedural. You need to work with Classes to implement your code rather than writing simple functions. OOPS programming is more flexible for module development.
Drupal 8 uses namespace. Namespacing ensures that your class does not conflict with another class of the same name.