User Tools

Site Tools


blog:pushbx:2023:0430_what_is_object_oriented_programming

What is Object Oriented Programming?

I recently gossiped again about how formal education did not properly define topics such as OOP. So here's my attempt:

In OOP, you can define your own data types, called classes. A class can consist of some data structures and some code associated with the class. A variable whose type is a class is called an object. Thus objects logically tie some data to some code. Classes can contain objects of another class (has a), or classes can inherit from other classes (is a).

You could leave a comment if you were logged in.
blog/pushbx/2023/0430_what_is_object_oriented_programming.txt · Last modified: 2023-04-30 00:07:09 +0200 Apr Sun by ecm