
166 Programming for Chemical Engineers
Through these examples, we have learned how to make C++ programs in their
simplest and basic form. We also saw the similarities and differences of its
programming style from C. Furthermore, Example Problem 5.8 touched on the
concept of object-oriented programming. We will, in fact, discuss OOP further
in the next section.
OBJECT-ORIENTED PROGRAMMING (OOP) IN C++
As we all know, the main purpose of developing a computer program is to help
solve real-world problems that involve materials, equipment, or ideas. In fact,
the problems discussed so far tackle real situations. Similarly, in object-oriented ...