what is the meaning of Abstraction in OOPS

Posted on 2008-11-04
Last Modified: 2010-04-21
what is the meaning of Abstraction in OOPS?
how/where we use Abstraction in real time project...
Question by:Asheesh_Kumar
    LVL 4

    Accepted Solution

    Abstraction is the programming principle of ignoring the low level details, in favour of concentrating on the higher level interactions between software components, and coding the interfaces between them accordingly. It is achieved by the use of subclasses, inheritance, abstract classes and interfaces to focus on the functionality of the class, without making it specific the the actual implementation.
    LVL 6

    Assisted Solution

    You actually use abstraction in the Java API classes because you use them and don't care about their implementation, in other words you use the 'public interfaces', that means you use the public methods of your objects but you don't care how they were implemented. For example:

    You don't care about the definition and implementation of the ArrayList and it's add method. You only care about that exists an ArrayList that has an add method.
    ArrayList<String> myArrayList = new ArrayList<String>(); 
    myArrayList.add("Hello World"); //(how adds the String? I don't care)

    Open in new window


    Author Closing Comment

    satisfactry answers

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Training Course: Java/J2EE and SOA

    This course will cover both core and advanced Java concepts like Database connectivity, Threads, Exception Handling, Collections, JSP, Servlets, XMLHandling, and more. You'll also learn various Java frameworks like Hibernate and Spring.

    Suggested Solutions

    Title # Comments Views Activity
    EvenOdd challenge 10 67
    java set up 1 35
    firstChar challenge 13 55
    Unexpected HttpURLConnection connection behavior 2 17
    This was posted to the Netbeans forum a Feb, 2010 and I also sent it to Verisign. Who didn't help much in my struggles to get my application signed. ------------------------- Start The idea here is to target your cell phones with the correct…
    Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
    Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:
    This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.

    737 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now