Only the misapplications you give examples of have gone out of style, I’d say.
In very simple words, each object in an OOP program is a virtual computer, its class define the instruction set.
"Objects are a recursion on the notion of computer itself"
--Alan Kay
OOP languages never actually include this because nobody seems to particularly care if their code actually works.