Week 5 - Session 1 - Object Oriented Programming

blog image source
OOP (Object Oriented Programming), can be defined as a programming technique based on objects, instead of just functions and procedures. Object Oriented Programming binds data and instructions for processing the data together into an object that can be used within a program or in other programs.

Examples of Object Oriented languages include Java, Ruby, Python, PHP. JavaScript is a multi-paradigm language, most Object Oriented languages are class-based where JavaScript is prototype-based. Advantages of OOP can be from various aspects:

  • Code Reuse: Object Oriented Programming enables the reuse of code from one program into another program through objects.
  • Data Integrity: Through encapsulation, it becomes easier to achieve data integrity and consistency by validating data and restricting the user from directly accessing the data/data members.
  • Simple-Complex Design: Object Oriented Programming allows a designer to model large complex systems into simple and manageable designs.
  • Software Maintenance: An Object Oriented Program is much easier to maintain as compared to a non-Object Oriented piece of software.
The four principles of OOP - https://anampiu.github.io/blog/OOP-principles/
Object-Oriented Programming Concepts - https://docs.oracle.com/javase/tutorial/java/concepts/index.html

Popular posts from this blog

Week 9 to 12 - Learning with MCR Codes

Week 8 - Session 1 - JavaScript in the Browser

Week 9 - Session 1 - The Internet, the Web, HTTP