To understand OOP better...

From: Asapi (Asapi_at_net.net)
Date: 12/15/03


Date: Mon, 15 Dec 2003 18:00:28 GMT

What are features of Procedural Programming? My understanding is that such
way of programming focuses on writing procedures/functions. Take the
example below:

int AnotherFunc(...)
{
...
}

void Func(...)
{
...
/*To obtain functionality of Func, AnotherFunc needed, so build it also*/
AnotherFunc(...);
...
}

int main()
{
...
/*This functionality needed, build it*/
Func(...);
...
}

Is my such understanding correct about Procedural Programming?

In contrast, OOP, besides encapsulation, inheritance and polymorphism, can
produce more modular code that is good for large-scale projects and
maintaining code.

Any other points am I missing here?

Thanks!