What is Object-Oriented Programming?
Object-Oriented Programming
is a programming paradigm (think of it as a methodology/writing style) in which you think of everything as real-life objects.
What does an object in real life look like? Think about what you have in front of you right now. You are scrolling through this lesson with a mouse. You are looking at a monitor. You are typing on the keyboard. All of these things are objects. What do they "have"?
- Monitor:
- A width and height.
- A display that can show images/videos to you.
- Mouse and Keyboard:
- Buttons with names or numbers.
- A signal which is sent to the computer when you press a button.
