That was how I was doing OOP in C in the late 80s and early 90s. I found many of those concepts both in Python and in JavaScript. After all they were born around that time.
Python because of the insistence of declaring that explicit self argument, the pointer to the struct for the object.
JavaScript because of the prototype based OO. You can change the meaning of any field in an OO C struct if you know how to handle it later.
Python because of the insistence of declaring that explicit self argument, the pointer to the struct for the object.
JavaScript because of the prototype based OO. You can change the meaning of any field in an OO C struct if you know how to handle it later.