• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

why we use object oriented programming

 
Samanthi perera
Ranch Hand
Posts: 510
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
why we use object oriented programming ?
 
Ulf Dittmer
Rancher
Pie
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What do you think the answer to this question is? Have you done some research on it?
 
Samanthi perera
Ranch Hand
Posts: 510
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i think objects are reusable.
 
Ulf Dittmer
Rancher
Pie
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So are subroutines written in procedural languages. Anything else?
 
Samanthi perera
Ranch Hand
Posts: 510
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
normally humans think as objects
 
Ulf Dittmer
Rancher
Pie
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 510
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
the why we use OO concepts other than procedural language?
 
Samanthi perera
Ranch Hand
Posts: 510
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i think oop gives Inheritance
Pholimorephism
Encapsulation
Abstraction.
Is this the reason why we use OOP?
 
Samanthi perera
Ranch Hand
Posts: 510
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
what are the reason for nowdays we highly use OOP other than procedural languages?
 
Ran Pleasant
Ranch Hand
Posts: 76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Paul Clapham
Sheriff
Pie
Posts: 20729
30
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 213
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"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.
 
rushikesh sawant
Ranch Hand
Posts: 65
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic