+ 2

What is object-oriented programming?

5th Jul 2019, 10:07 AM
Abgar Xachatryan (Abgar)
Abgar Xachatryan (Abgar) - avatar
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).
5th Jul 2019, 10:17 AM
Drax
Drax - avatar
+ 4
Objects are supposedly more intuitive when modelling real world entities.
5th Jul 2019, 1:37 PM
Sonic
Sonic - avatar
+ 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).
5th Jul 2019, 10:19 AM
Drax
Drax - avatar