What is ABSTRACTION??....... Computer (Java)..
Answers
Answered by
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!
= > 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:
:-)
Answered by
1
Answer:
Data Abstraction is the property by virtue of which only the essential details are displayed to the user.
Explanation:
Similar questions