• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1302
  • Last Modified:

what is the meaning of Abstraction in OOPS

what is the meaning of Abstraction in OOPS?
how/where we use Abstraction in real time project...
0
Asheesh_Kumar
Asked:
Asheesh_Kumar
2 Solutions
 
WoodzCommented:
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.
0
 
javaexpertoCommented:
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

0
 
Asheesh_KumarAuthor Commented:
satisfactry answers
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now