What is abstraction?

I see abstraction in processes. I see data abstraction.

I see that abstraction is losing irrelevant details.

I see that the abstraction gives the group of elements a name and treats them as one unit. (But I do not know why this is considered an abstraction. Therefore, please, I need to clarify this point)

I know that there are also levels of abstraction, and although the name implies something, I have no practical example, and I cannot come up with any specific one. I am confused in the definition of abstraction.

Can someone write a comprehensive article? Erase it. Can anyone give an exhaustive answer?

EDIT: - Thanks for the answer. However, I was looking for a generalized answer. For example, I am reading an article in which procedures are considered abstractions. However, here the answers relate to abstract classes in C # and Java, (so far.) Thanks again.

+5
source share
4 answers

Abstraction is a method of hiding implementation. This kernel does not have much more for this answer. The bulk of the meaning of abstraction comes from how and why it is used.

It is used for the following scenarios

  • Reduce difficulty. (Create a simple interface)
  • Allow modification of the implementation without affecting its users.
  • Create a common interface to support polymorphism (considering all implementations of the abstracted layer the same way).
  • Forces users to expand the implementation, not change.
  • - .
+12

, - . , . , DirectX, , . , , .

+2

. , java.util.List, java.util.ArrayList java.util.Map. (), ArrayList Map .

, , .

, . , , , , , . , . .

+1

, , , , , Pro # Troelsen. , (). . , . , , , . FieldDef DispValue. FieldDef. . , , , . - , , , , () , , , ,

+1
source

All Articles