Slashdot Mirror


User: Miau

Miau's activity in the archive.

Stories
0
Comments
1
First seen
Last seen
Profile
(view on slashdot.org)

Comments · 1

  1. Practical example on Can OO Programming Solve Engineering Problems? · · Score: 1

    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