How do I know if I'm programming procedural style in an object-oriented language?
How do I know if I'm programming procedural style in an object-oriented language?
It's hard to say what's right or wrong, because everything depends on a context, but in object orientation there are some topics. Some things that can help are:
Anyway, there are several topics, I mentioned some that I think is important. Begin by trying to understand the principles and be critical of your own code. Object orientation is a complex subject and very conceptual, one must always be studying.
When you call a procedure directly without sending a message to a specific object so that it takes care of it you are being procedural.
When you tap properties of an object outside the object's own class you are being procedural.