File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Ranch Office and the fly likes abstraction Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » This Site » Ranch Office
Bookmark "abstraction" Watch "abstraction" New topic
Author

abstraction

s.palanivel rajan
Ranch Hand

Joined: Sep 22, 2009
Posts: 40
what is mean by ABSTRACTION ?Please explain be the basic concept of ABSTRACTION


With Regards,
S.Palanivel Rajan B.E.
Patricia Samuel
Ranch Hand

Joined: Sep 12, 2007
Posts: 300
Abstraction is something like showing only the essential information to the user.
For example, abstracting a leather soccer ball to a ball retains only the information on general ball attributes and behaviour.
We are not telling here that ball is a soccer ball. We will just give essential attributes of a ball.


Regards,
Patricia
s.palanivel rajan
Ranch Hand

Joined: Sep 22, 2009
Posts: 40
I understand your definition.. But in polymorphism also we are using the same concept is it?
Patricia Samuel
Ranch Hand

Joined: Sep 12, 2007
Posts: 300
Please read the following -

http://dotnetslackers.com/articles/csharp/PolymorphismEncapsulation.aspx

It might clear your doubt about polymorphism. Polymorphism means to have different form of a thing. Like overloading is the example of Polymorphism.

Regards,
Patricia.
Stanley Walker
Ranch Hand

Joined: Sep 23, 2009
Posts: 87
this question is to the bartenders and the ranchhands.
would i be correct if i say that interface is a form of abstraction where the actual method implementations are hidden.simply the signature is displayed.
is dis correct?
Embla Tingeling
Ranch Hand

Joined: Oct 22, 2009
Posts: 237
Stanley Walker wrote:this question is to the bartenders and the ranchhands.
would i be correct if i say that interface is a form of abstraction where the actual method implementations are hidden.simply the signature is displayed.
is dis correct?


That's right.

In Java you create abstractions by defining your own types. In principle a type is the non-private interface of a class, and interface or an enum. You use the types to declare variables. Variables of a certain type can hold objects of a certain type. Because types are closely associated with variables and objects it's usually called data abstraction.

The type is what an object shows to the outside. This defines what you can do. Hidden inside is the implementation determining how it's done. This split is called encapsulation. When you encapsulate something you get an outside and an inside. The outside is the data abstraction (the type), the inside is information hiding (the implementation).
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 38412
    
  23
Stanley Walker wrote:this question is to the bartenders and the ranchhands. . . .
What makes you think you won't get a decent answer from a greenhorn?
Raghavan Muthu
Ranch Hand

Joined: Apr 20, 2006
Posts: 3344

Campbell Ritchie wrote:
Stanley Walker wrote:this question is to the bartenders and the ranchhands. . . .
What makes you think you won't get a decent answer from a greenhorn?


Perhaps, the so called experience and the decent amount of earlier discussions they might have had so far. -- Just in my point of view. That's what I also used to think years before.


Everything has got its own deadline including one's EGO!
[CodeBarn] [Java Concepts-easily] [Corey's articles] [SCJP-SUN] [Servlet Examples] [Java Beginners FAQ] [Sun-Java Tutorials] [Java Coding Guidelines]
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 38412
    
  23
Copying thread to Ranch Office where discussion of "greenhorns" should continue.
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 38412
    
  23
I earlier wrote:Copying thread to Ranch Office where discussion of "greenhorns" should continue.
Done. Please continue discussion of abstraction here, once I have a few minutes to reopen then thread.
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 38412
    
  23
A greenhorn may be somebody who is very experienced in programming and Java. It means somebody who is new to the site, and may need a lot of introduction to our conventions and ways of doing things.
John de Michele
Rancher

Joined: Mar 09, 2009
Posts: 600
I would gather that there is very little correlation between the number of posts on JavaRanch one has done and the amount of Java experience one has. Assuming greenhorns are inexperienced is rather fallacious thinking.

John.
s.palanivel rajan
Ranch Hand

Joined: Sep 22, 2009
Posts: 40
Stanley Walker wrote:this question is to the bartenders and the ranchhands. . . .


Hey i am also a green horn i am new to this site and also i am new to java.. I don't have enough working experience in Java..May be in green horn side some of the members will be a entry level java programmers and some members will have lot of experience in java but new to this site..
But in bartenders side and ranch hand side it is not possible everybody will have lot of experience.. I think so that only he might be told like this..
So dont take it as series be positive and leave this matter here itself..
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 38412
    
  23
It started off as a joke . . .
Janeice DelVecchio
Saloon Keeper

Joined: Sep 14, 2009
Posts: 1660
    
  11

I'm a ranch hand.... because I post a lot. Not because I'm experienced

I try to answer questions because sometimes I think I know the answer and then Campbell comes by and says I was wrong. then we all learn

When someone asks for responses for RanchHands and Bartenders, well I try to restrain myself.... because I know I'm not what they were looking for


When you do things right, people won't be sure you've done anything at all.
Raghavan Muthu
Ranch Hand

Joined: Apr 20, 2006
Posts: 3344

Janeice DelVecchio wrote:I'm a ranch hand.... because I post a lot. Not because I'm experienced

I try to answer questions because sometimes I think I know the answer and then Campbell comes by and says I was wrong. then we all learn


Its a well known tradition in JR
Vivek Singh
Ranch Hand

Joined: Oct 27, 2009
Posts: 92
Campbell Ritchie wrote:It started off as a joke . . .


Yes Yes!!! Its a Joke...don't take it seriously!!!
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 38412
    
  23
Raghavan Muthu wrote:
Janeice DelVecchio wrote:I'm a ranch hand.... because I post a lot. Not because I'm experienced

I try to answer questions because sometimes I think I know the answer and then Campbell comes by and says I was wrong. then we all learn


Its a well known tradition in JR
I learn lots about Java and programming because people like Rob Prime tell me when I am mistkaen.
Raghavan Muthu
Ranch Hand

Joined: Apr 20, 2006
Posts: 3344

Campbell Ritchie wrote:I learn lots about Java and programming because people like Rob Prime tell me when I am mistkaen.


We mutually help each other and thats how we *really* learn and improve Thanks to JR for having provided such a wonderful platform!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: abstraction