Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

oops concept

 
manas ranjan mandal
Ranch Hand
Posts: 97
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
can anyone explain what is oops concept?
 
K Kiran Kumar
Ranch Hand
Posts: 109
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Please go through the link.
http://java.sun.com/docs/books/tutorial/java/concepts/
Regards,
Kiran.
 
Subbu Palisetty
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by manas ranjan mandal:
can anyone explain what is oops concept?


oop's bject oriented programming's concept.

having 4 major properties:
polymorphism : Takes more than one form [runtime,compile time]
Abstraction : Hiding the data [objects]
Inheritance : inheriting the properties of another class/interface
Encapsulation: Data binding [access modifiers]
[ May 15, 2008: Message edited by: Campbell Ritchie ]
 
Campbell Ritchie
Sheriff
Pie
Posts: 49776
69
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
welcome to the Ranch, Subbu Palisetty.

I have edited your post with the "disable smilies" box otherwise you had a stray
 
Campbell Ritchie
Sheriff
Pie
Posts: 49776
69
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The object-oriented paradigm works on the basis that "objects" have both data (fields) and behaviour (methods) and the "behaviour" operates on the "data." In OO programming we pass messages (method calls) from one object to another which initiate the "behaviour."
 
Ilja Preuss
author
Sheriff
Posts: 14112
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Campbell Ritchie:
The object-oriented paradigm works on the basis that "objects" have both data (fields) and behaviour (methods) and the "behaviour" operates on the "data." In OO programming we pass messages (method calls) from one object to another which initiate the "behaviour."


And a very important part is that different objects can react to the same message with different behavior. (Also known as Polymorphism.)
 
arulk pillai
Author
Ranch Hand
Posts: 3388
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


Q. What are the advantages of Object Oriented Programming Languages (OOPL)?
A. The Object Oriented Programming Languages directly represent the real life objects like Car, Jeep, Account, Customer etc. The features of the OO programming languages like polymorphism, inheritance and encapsulation make it powerful. [Tip: remember pie which, stands for Polymorphism, Inheritance and Encapsulation are the 3 pillars of OOPL]




Q. How does the Object Oriented approach improve software development? DC
A. The key benefits are:

Re-use of previous work: using implementation inheritance and object composition.
Real mapping to the problem domain: Objects map to real world and represent vehicles, customers, products etc: with encapsulation.
Modular Architecture: Objects, systems, frameworks etc are the building blocks of larger systems.

The increased quality and reduced development time are the by-products of the key benefits discussed above. If 90% of the new application consists of proven existing components then only the remaining 10% of the code have to be tested from scratch.
 
Ilja Preuss
author
Sheriff
Posts: 14112
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by arulk pillai:
Real mapping to the problem domain


In my opinion, this is a (common) misunderstanding of what OO is about. Uncle Bob has a (funny) blog entry about this: http://www.artima.com/weblogs/viewpost.jsp?thread=37870
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic