Hi there,
I was wondering if anyone could explain to me the difference between an imperative program, and an OO program?
I am fully aware of the languages which support these (older languages for imperative, and for example Java for OO), and although I understand the basic concepts of OO - classes and objects, I would just like some clarification of the difference between OO and imperative.
At present, I am presuming that an imperative program is just 1 file stuffed full of variables/types and functions that act upon them, where as OO identifies possible objects (such as dates, or addresses), separating these into a different file and hiding their implementation from other objects/classes which may call them.
Could someone please give an example of the difference between the two? Pseudocode would be good for the explanation!
Thank you!