Computer Science, asked by myselfyiri, 1 year ago

What is ABSTRACTION??....... Computer (Java)..

Answers

Answered by siddhartharao77
3
Short note on Abstraction in Java:

= > It is the process of hiding the implementation details and showing the most essential information.

= > It can be achieved using abstract classes and interfaces.

= > Abstraction reduce code complexity.


Example:

import java.util.*;
public class Quora
{
public static void main(String[] args)
{
Brainly br = new App();
br.use();
}
}

abstract class Brainly
{
public abstract void use();
}

class App extends Brainly
{
public void use()
{
System.out.print("I use brainly.in");
}
}


Output:

Brainly.in



Hope this helps!

siddhartharao77: :-)
myselfyiri: Thnku so much
siddhartharao77: Most Welcome!
Answered by anshikajais2001
1

Answer:

Data Abstraction is the property by virtue of which only the essential details are displayed to the user.

Explanation:

Similar questions