It's not a secret anymore!*
The moose likes Beginning Java and the fly likes oops concept Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "oops concept" Watch "oops concept" New topic
Author

oops concept

manas ranjan mandal
Ranch Hand

Joined: Apr 02, 2008
Posts: 97
can anyone explain what is oops concept?
K Kiran Kumar
Ranch Hand

Joined: Jan 04, 2006
Posts: 109
Hi,
Please go through the link.
http://java.sun.com/docs/books/tutorial/java/concepts/
Regards,
Kiran.
Subbu Palisetty
Greenhorn

Joined: May 15, 2008
Posts: 6
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

Joined: Oct 13, 2005
Posts: 38062
    
  22
welcome to the Ranch, Subbu Palisetty.

I have edited your post with the "disable smilies" box otherwise you had a stray
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 38062
    
  22
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

Joined: Jul 11, 2001
Posts: 14112
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.)


The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
arulk pillai
Author
Ranch Hand

Joined: May 31, 2007
Posts: 3219


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.


Java Interview Questions and Answers Blog | Amazon.com profile | Java Interview Books
Ilja Preuss
author
Sheriff

Joined: Jul 11, 2001
Posts: 14112
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: oops concept
 
Similar Threads
how to use c/cpp code in java??
Java Tutor - First day what to teach? :)
general doubt
Inner classes
tell me what is Abstraction