OOP
-
Hi... What the advantages are of object oriented programming over Procedural coding? Thank you... :)
-
Hi... What the advantages are of object oriented programming over Procedural coding? Thank you... :)
-
Hi... What the advantages are of object oriented programming over Procedural coding? Thank you... :)
Wrong forum. And it's it's a situational thing; use the right tool for the right job.
-
Hi... What the advantages are of object oriented programming over Procedural coding? Thank you... :)
candz_kritz wrote:
What the advantages are of object oriented programming over Procedural coding?
The most obvious one to me is readability; in the procedural days I was often passing a structure to each procedure as a param (to avoid using a global var, which is even uglier) - now it's nicely embedded in the object as a private field. There's more advantages which improve life, like inheritance. If it's homework, I'd recommend the Wikipedia; it'll be more complete in it's definitions.
Bastard Programmer from Hell :suss: If you can't read my code, try converting it here[^]
-
Hi... What the advantages are of object oriented programming over Procedural coding? Thank you... :)
Procedural coding is about procedures/functions. We write procedures which just take an input and produce an output. They don't have any kind of relation with another procedure. Sometimes they are just able to use some global or shared data when required. OOP is all about objects. We do write procedures/functions in OOP, but the main thing is the class. A class has a relation; it can be a parent or base class, it can be a child class. And then we do things on the objects created by those classes. As classes have relation so we can say that the the objects of those classes do have the relations also. For deeper understanding, you should check for articles online. Just google :)