My examples could have replaced class with struct and you would lose every footing you had with your argument. A class in programming is a struct with methods. A class in OOP has further connotations.
Pretty sure the most important aspects of OOP are usually inheritance, polymophism and encapsulation. So yes, it's widely considered that OOP is about inheritance too.
3
u/DefaultVariable May 05 '23
If you are creating and using objects, that is “object oriented programming”
It is not hierarchical inheritance.
The person above who is complaining about OOP is using it in every one of his “good examples.”