|
hello
Procedural ProgrammingProcedural programming
separates the data of the program from the operations that manipulate
the data. For example, if you want to send information across a
network, only the relevant data is sent (see Figure 1), with the
expectation that the program at the other end of the network pipe knows
what to do with it. In other words, some sort of handshaking agreement
must be in place between the client and server to transmit the data. In
this model, no code is actually sent over the wire.
OOP
The fundamental
advantage of OO programming is that the data and the operations that
manipulate the data (the code) are both encapsulated in the object. For
example, when an object is transported across a network, the entire
object, including the data and behavior, goes with it.
bye
|