Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read

Reply
 
Thread Tools Search this Thread
  #1  
Old 25-11-2009
Member
 
Join Date: Nov 2009
Posts: 70
Concept of abstraction

Hi,

I am IT student, I have lots of confusion regarding "Abstraction".As Inheritance is useful for the re-usability of the the program code, What is the use of "Abstraction"?.
I don't have idea regarding "Abstraction". What is "Abstraction" and it's use?. If you aware about the "Abstraction" concept the please explain it with example , so that it will be more useful for me.

Last edited by bharti_rajpal : 25-11-2009 at 08:35 AM.
Reply With Quote
  #2  
Old 25-11-2009
Member
 
Join Date: May 2008
Posts: 2,008
Re: Concept of abstraction

The method of showing only required data as well as hide data which is unnecessary is called as "Abstraction".

e.g: The java methods are the best example of the abstraction. The users of the program are unaware about where these methods are stored in the memory, But they can see the declaration of the methods and their use in the class

In short Abstraction is used to display only data which is necessary for users.

Last edited by Katty : 25-11-2009 at 11:42 AM.
Reply With Quote
  #3  
Old 25-11-2009
Member
 
Join Date: Apr 2008
Posts: 2,001
Re: Concept of abstraction

Using abstraction we can inherit the multiple inheritance in JAVA. By using this we can include only prototypes of method. Refer the below example of the abstraction:
Quote:
Abstract class demo
{
Abstract function([set of arguments]);
..................
.....................
}

Here we are able to define another one class to implement abstract methods. as below:

public class A1 implements demo
{
//Method definition
}

Last edited by kelfro : 25-11-2009 at 12:07 PM.
Reply With Quote
  #4  
Old 25-11-2009
Member
 
Join Date: May 2008
Posts: 2,293
Re: Concept of abstraction

Hi friend,

The task of removing and granting features from something for limiting it to only required features is referred as "Abstraction" . The main purpose of the abstraction is to hide very important data or data details. You can use abstract method to implement the abstraction. When you run the program you are not able to see what happening in the memory while runnimg program. Other that this I don't know more about the abstraction.

Last edited by Zecho : 25-11-2009 at 12:06 PM.
Reply With Quote
Reply

  TechArena Community > Software > Software Development
Tags: , ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "Concept of abstraction"
Thread Thread Starter Forum Replies Last Post
What is Database Abstraction Layer in PHP? Author Software Development 5 07-03-2010 04:34 AM
Don't know what is data abstraction Sarfaraj Khan Software Development 5 23-01-2010 12:32 PM
Confused in between abstraction and encapsulation reetus Software Development 3 08-12-2009 08:59 AM
Concept of UML Jagadamba Software Development 3 20-11-2009 09:53 AM
Concept of OLAP ? Antrix Software Development 4 06-10-2009 04:38 PM


All times are GMT +5.5. The time now is 10:05 PM.