Click to See Complete Forum and Search --> : Object-Oriented programming? What's the use?


amahmood
01-30-2005, 06:51 PM
I start with this question: can anybody putdown a problem that can be solved easier using classes and Object-Oriented programming?

You see, in procedural programming we have functions. we can write programs without using functions at all but we need them to save our time but I don't see any advantages in using classes.

Is there anybody in the world that believes that Object-Oriented Programming is easier or better or any positive attribute?

The reason that I ask this question is that if I found an advantage in Object-Oriented programming perhaps I would appreciate it more and learn it faster.

Khalid Ali
01-30-2005, 11:35 PM
The biggest advantages of OO design in Java in my humble opinion are in order
inheritance
Polymorphism
and Code re-usage.

The actual problem with OO(that stems a question like yours) is to understanding the concept of OO and relate it to real life examples.

My answer is short but if you start reading about the topics mentioned above you eventually will come to terms with this OO stuff...:-)

amahmood
01-31-2005, 05:26 AM
Originally posted by Khalid Ali
The biggest advantages of OO design in Java in my humble opinion are in order
inheritance
Polymorphism
and Code re-usage.

The actual problem with OO(that stems a question like yours) is to understanding the concept of OO and relate it to real life examples.

My answer is short but if you start reading about the topics mentioned above you eventually will come to terms with this OO stuff...:-)
I have to study the topics you mentioned, perhaps they give me a clue, thanks.

just something about "Code re-usage", don't functions do the same job?

Khalid Ali
01-31-2005, 09:17 AM
Originally posted by amahmood
just something about "Code re-usage", don't functions do the same job?
True...partially...I think you must read about OO design patterns and you will find out that what Java has to offer(as being oneof the OO programming languages)