Comment Practical example (Score 1) 621
Imagine that you want to simulate the thermal behavior of a solid. You can build an object, a class if you want, called "solid". Then define a method (procedural programation) to simulate radiation exchanges, another for conductive ones and a third method for convectives. The way OOP can help you is that if you want to simulate the thermal behavior and ink per page consumption of a pen, you can create an object called "pen", write down the code for the ink part of the problem, and just instruct that your "pen" object is a "solid" kind of object, making use of the existent methods for such an solid object. Imagine that you want to simulate the thermal behavior of a solid. You can build an object, a class if you want, called "solid". Then define a method (procedural programation) to simulate radiation exchanges, another for conductive ones and a third method for convective. The way OOP can help you is that if you want to simulate the thermal behavior and ink per page consumption of a pen, you can create an object called "pen", write down the code for the ink part of the problem, and just instruct that your "pen" object is a "solid" kind of object, making use of the existent methods for such an solid object.
Read Marx Mrvelous answer at Jan 03 11:38 AM
Read Marx Mrvelous answer at Jan 03 11:38 AM