what is data Abstraction? and give example
Answer Posted / k.shajil, surandai
In computer science, the mechanism and practice of abstraction reduces and factors out details so that one can focus on a few concepts at a time.
The following English definition of abstraction helps to understand how this term applies to computer science, IT and objects:
abstraction - a concept or idea not associated with any specific instance[1]
The concept originated by analogy with abstraction in mathematics. The mathematical technique of abstraction begins with mathematical definitions; this has the fortunate effect of finessing some of the vexing philosophical issues of abstraction. For example, in both computing and in mathematics, numbers are concepts in the programming languages, as founded in mathematics. Implementation details depend on the hardware and software, but this is not a restriction because the computing concept of number is still based on the mathematical concept.
In computer programming, abstraction can apply to control or to data: Control abstraction is the abstraction of actions while data abstraction is that of data structures.
Control abstraction involves the use of subprograms and related concepts control flows
Data abstraction allows handling data bits in meaningful ways. For example, it is the basic motivation behind datatype.
One can regard the notion of an object (from object-oriented programming) as an attempt to combine abstractions of data and code.
The recommendation that programmers use abstractions whenever suitable in order to avoid duplication (usually of code) is known as the abstraction principle. The requirement that a programming language provide suitable abstractions is also called the abstraction principle.
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
Does there exist any other function which can be used to convert an integer or a float to a string?
How to tokenize a string in c++?
What is the difference between interpreters and compilers?
Can c++ be faster than c?
We all know that a const variable needs to be initialized at the time of declaration. Then how come the program given below runs properly even when we have not initialized p?
What is operators in c++?
Differentiate between late binding and early binding. What are the advantages of early binding?
What are structures and unions?
Can you help me with this one? Make a program that when a user inputed a Product Name, it will display its price, and when the user inputed the quantity of the inputed product, it will show its total price. The output must be like this: Product Name: Price: Quantity: Total Price: ..this is the list of products to be inputed: Cellphone - 1500 Washing Machine - 5200 Television - 6000 Refrigirator - 8000 Oven - 2000 Computer - 11000 thanks..:D
What is difference between array and vector in c++?
What are formatting flags in ios class?
Explain binary search.
Differentiate between a pointer and a reference with respect to c++.
Snake Game: This is normal snake game which you can find in most of the mobiles. You can develop it in Java, C/C++, C# or what ever language you know.
How is c++ used in the real world?