+ 2
What is object-oriented programming?
3 Answers
+ 3
Oop is a paradigm that helps build and understand software. It allows to 'hide' some logic with access specifier (private, public, protected) and in some cases, it just make a lot of sense (inheritance).
+ 4
Objects are supposedly more intuitive when modelling real world entities.
+ 3
Let's have an example!
Imagine you are building a lib to display a GUI. You'll probably create a class named 'widget' that people will be able to use (inherit from).