wood burning stoves*
The moose likes OO, Patterns, UML and Refactoring and the fly likes why we use object oriented programming Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Engineering » OO, Patterns, UML and Refactoring
Bookmark "why we use object oriented programming " Watch "why we use object oriented programming " New topic
Author

why we use object oriented programming

Samanthi perera
Ranch Hand

Joined: Jan 08, 2010
Posts: 510
why we use object oriented programming ?
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 39578
    
  27
What do you think the answer to this question is? Have you done some research on it?


Ping & DNS - updated with new look and Ping home screen widget
Samanthi perera
Ranch Hand

Joined: Jan 08, 2010
Posts: 510
i think objects are reusable.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 39578
    
  27
So are subroutines written in procedural languages. Anything else?
Samanthi perera
Ranch Hand

Joined: Jan 08, 2010
Posts: 510
normally humans think as objects
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 39578
    
  27
You mean the physical world is full of objects, and not subroutines? True, but objects in the OO sense consist of data and methods - not what humans generally associate with the concept of an "object".
Samanthi perera
Ranch Hand

Joined: Jan 08, 2010
Posts: 510
the why we use OO concepts other than procedural language?
Samanthi perera
Ranch Hand

Joined: Jan 08, 2010
Posts: 510
i think oop gives Inheritance
Pholimorephism
Encapsulation
Abstraction.
Is this the reason why we use OOP?
Samanthi perera
Ranch Hand

Joined: Jan 08, 2010
Posts: 510
what are the reason for nowdays we highly use OOP other than procedural languages?
Ran Pleasant
Ranch Hand

Joined: Jan 16, 2003
Posts: 75
Samanthi perera wrote:why we use object oriented programming ?


Because it makes everything easier and more simple. Procedural programming is hard and complex. Object programming is much more easier and greatly reduces complexity.


Ran
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18159
    
    8

Ran Pleasant wrote:Because it makes everything easier and more simple. Procedural programming is hard and complex. Object programming is much more easier and greatly reduces complexity.


I could say the opposite. Procedural programming is easy and not complex. Object-oriented programming is much harder and greatly increases complexity.

There, I said it. Now why are you right and why am I wrong?
Ran Pleasant
Ranch Hand

Joined: Jan 16, 2003
Posts: 75
Paul Clapham wrote:
Ran Pleasant wrote:Because it makes everything easier and more simple. Procedural programming is hard and complex. Object programming is much more easier and greatly reduces complexity.


I could say the opposite. Procedural programming is easy and not complex. Object-oriented programming is much harder and greatly increases complexity.

There, I said it. Now why are you right and why am I wrong?


Friend, there are 10,000 books on this and I don't have the time.
Vlad Varnica
Ranch Hand

Joined: Dec 28, 2002
Posts: 40
Java and UML are object oriented so if you want to use java or UML then it should be in an object oriented project.
If you don't want object approach then you can try to return to byte code programming, or cobol in the 1960's.
btw, you can develop same application whatever is the language the only difference is how long you would need to complete the job !!
Lee Kian Giap
Ranch Hand

Joined: Jan 23, 2008
Posts: 210
"why we use object-oriented programming?"
my answer is always : because you are using object-oriented analysis and design.
why this is my answer? If anyone just try to use OO programming merely for those polymorphism/inheritance/encapsulation ... (and all OO term) without an OO analysis and design, the only thing is end up with a system which mess of procedural and OO (because it looks like OO since you use OO programming), with mistake of anti-pattern, and mix of problem space and solution space. The system will sometimes look like representing the business , and somehow look like having funny String/int/char a low level (or better said literal) of data processing.

so the question is better rephrase to this "why we use object-oriented analysis and design?" , OO programming comes after it just for the sake to implement OO analysis & design.


SCJP 6, SCWCD 5, SCBCD 5
rushikesh sawant
Ranch Hand

Joined: Dec 22, 2009
Posts: 65
programming using OOP concepts makes life easier for software people. Its easy to debug, test, and most importantly it provides component reuse which is essential for faster development and to cope with changing requirements in software development.


SCJP 5.0 100%
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: why we use object oriented programming
 
Similar Threads
BJO - Why OOP
What is Object and Why we use it
Hi Question
Why do we need object oriented databases
about java oops