What is Abstraction in java with example, java Abstract class with example | जावा में एब्स्ट्रैक्शन क्या है उदाहरण के साथ, जावा एब्सट्रैक्ट क्लास उदाहरण के साथ

What is Abstraction in java with example, java Abstract class with example | जावा में एब्स्ट्रैक्शन क्या है उदाहरण के साथ, जावा एब्सट्रैक्ट क्लास उदाहरण के साथ

 

Main purpose of abstraction is to hide information for user and showing the data to user which is recurred to user. That is not relevant or rather shows only relevant information, to simplify it by comparing it to something similar in the real world. 

Some Points of abstraction in java:-

Hiding internal details and showing functionality is known as abstraction. 

·        It shows only required things to the user and hides all the internal functionality details.

·        It can be achieved with either abstract-classes or interfaces

·        It is a process of hiding the implementation functionality details from the user interface.

·        When a method that is declared as abstract class and does not have implementation is known as abstract method.

·        Two way to achieve abstraction firstly is Abstract class and secondly is Interface

For Example

What is Abstraction in java with example,java Abstract class with example

Polymorphism in java with example

Phone call, we don’t know the internal processing. But when we sending a message then we do not know about the internal functionality what is the going on internal process. Only we can show the message is sending or not…

It can be overrides with his characters and behaviours like his sounds

 

Post a Comment

Previous Post Next Post