What is Object Oriented Programming (OOP) ?

in Programming & Dev2 years ago (edited)

Object Oriented Programming Or OOP is a method of programming where data and functions are organized and encapsulated in an object. An object is something that can represent anything you see in the computer monitor like the buttons, text or icons etc. Object represents anything in real world like a car, a dog, a desk or a pencil. Object in real world has characteristics or attributes like color, height, width and have behavior like barking and running in dogs. Object in programming has methods which represents the behavior and the properties which represents the attributes. Based from my experience it is a lot easier to program using objects than doing a pure functional programming. It is easier to visualize and organize, codes are reusable and it is easy to scale. Thus, modern programming uses object oriented programming. There's a lot more about it but just want to over simplify it for beginners to understand. Hopefully, it helps. If you have question feel free to comment it out. Until next time - MJ008

Sort:  

Congratulations @mj008! You have completed the following achievement on the Hive blockchain and have been rewarded with new badge(s):

You distributed more than 800 upvotes.
Your next target is to reach 900 upvotes.

You can view your badges on your board and compare yourself to others in the Ranking
If you no longer want to receive notifications, reply to this comment with the word STOP

To support your work, I also upvoted your post!

Check out the last post from @hivebuzz:

PUD - PUH - PUM - It's all about to Power Up!
Christmas Challenge - 1000 Hive Power Delegation Winner
Support the HiveBuzz project. Vote for our proposal!

Dear @mj008,

The current HiveBuzz proposal will expire in a few days.

Do you mind supporting our proposal for 2022 so our team can continue its work next year?
You can do it on Peakd, ecency,

Hive.blog / https://wallet.hive.blog/proposals
or using HiveSigner.
https://peakd.com/me/proposals/199

Thank you. We wish you a Happy New Year!