Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / September 2006

Tip: Looking for answers? Try searching our database.

what  is abstraction ?

Thread view: 
gk - 04 Sep 2006 17:57 GMT
hi,

what  is abstraction ?

this is one  of the  principle of OOPS....right ?

but what it means ?do you have explanation for it ?i need to understand
the meaning in words......no coding here please.

and also  does abstraction has any relation with abstract class ?
Andrew Thompson - 04 Sep 2006 18:01 GMT
..
> what  is abstraction ?

<http://www.google.com/search?q=define+abstraction>

> this is one  of the  principle of OOPS....right ?
>
> but what it means ?do you have explanation for it ?i need to understand
> the meaning in words......no coding here please.

No worries.  No 'coding', just 'hits'.

Andrew T.
Mark Space - 04 Sep 2006 18:07 GMT
> ..
>> what  is abstraction ?
[quoted text clipped - 7 lines]
>
> No worries.  No 'coding', just 'hits'.

This one here from that Goggle list struck me as very good:

http://www.itmweb.com/essay550.htm
Stefan Ram - 04 Sep 2006 18:09 GMT
>what  is abstraction ?

 It means to leave out something.

 For example, in Java, abstracting "3" from the expression

2 * 3

 gives the method

public static int twice( final int x ){ return x * 3; }

 So now, the "2" has been abstracted out of the ... abstraction.
 And the abstraction has been "named" (often "abstraction" is
 a shorthand for the term "named abstraction").

 By naming an abstraction one is lead to the creation of a new concept.

 For example, abstracting even the »3«

public static int product( final int x, final int x1 ){ return x * x1; }

 yields the concept of multiplication.

 Applying an abstraction to arguments yields or expresses something
 as in »product( 2, 3 )«.

 The abstraction is a means do dissect a text into chunks
 so that they can be reused. We abstract the parts that restrict
 reuse of something within another context and thus we obtain
 a reusable entity, namely the abstraction.

 An unnamed abstraction would be the lambda-expression

\x.x·3

 where "lambda" was written as "\", but just forget this example,
 if you do not know lambda-calculus or read more about it at
 Google or Wikipedia.

>and also  does abstraction has any relation with abstract class ?

 The bodies of the methods have been abstracted from such a class.
gk - 04 Sep 2006 19:21 GMT
Thanks for the mail.

but still i am not clear with your explanation.

you have showed  a method which return x*3   when you pass x as a
argument to it.

so, x could be anything x=1,2,4,5, etc ......do you mean as this
method is reusable for any value of x and it will return the
mutiplicative output all the time.....its an example of
abstraction.........is this what you wanted to mean ?

i dont get the idea what you wanted to mean by those example.....how
abstraction is related  with that.

However from google search i found "A view of a problem that extracts
the essential information relevant to a particular purpose and ignores
the remainder of the information."

still, its very difficult to percept how and where we use this concept
in programming......i
cant beleve yet that abstract classes are examples of the abstraction
of a class ? is it true ?

> >what  is abstraction ?
>
[quoted text clipped - 39 lines]
>
>   The bodies of the methods have been abstracted from such a class.
Stefan Ram - 04 Sep 2006 19:33 GMT
>so, x could be anything x=1,2,4,5, etc ......do you mean as this
>method is reusable for any value of x and it will return the
>mutiplicative output all the time.....its an example of
>abstraction.........is this what you wanted to mean ?

 Yes, the value of »x« is left out from the method declaration,
 hence, "abstracted".

>cant beleve yet that abstract classes are examples of the abstraction
>of a class ?

 abstraction (i.e., removal) of method bodies.
gk - 04 Sep 2006 19:40 GMT
you told ............

>  abstraction (i.e., removal) of method bodies.

ok...so this means when we declare an abstract class ,we declare couple
of abstract methods .....those methods are actually the
abstraction...because we dont put any piece of code threon....its bit
extracted or abstracted or in summarised methods .....and the party who
will  use it has to give them the body and have to do their own.

is this all about data abstraction  for a class ? its looks simple now.

> >so, x could be anything x=1,2,4,5, etc ......do you mean as this
> >method is reusable for any value of x and it will return the
[quoted text clipped - 8 lines]
>
>   abstraction (i.e., removal) of method bodies.
gk - 04 Sep 2006 19:45 GMT
and  yes, one more thing....i think data abstraction are also exhibited
by java interfaces  too......right ? because interfaces are also more
or less similar to abstract classes .

> you told ............
>
[quoted text clipped - 20 lines]
> >
> >   abstraction (i.e., removal) of method bodies.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.