what is data Abstraction? and give example
Answers were Sorted based on User's Feedback
Answer / rlv
Abstraction is categorized as Data Abstraction and Procedural Abstraction. In data abstraction, the way the data are stored e.g. the structure or arrangement of data is hidden.
Procedural abstraction on the other hand, hides the details on how the function/procedure/method works. You must only know the inputs and the expected outputs, much like a black-box. The two ideas combined serve as one of the important concept in OOP called Encapsulation.
As an example, when you create a class for StudentGrades, the variables and their structure for representing grades is hidden by using the private keyword, you only provide methods to access and manipulate this data.
Is This Answer Correct ? | 0 Yes | 0 No |
Answer / abhay shukla
ata abstraction is a process of representing the essential
features without including implementation details.
example:
class result
{
int marks;
float percentage;
char name[20];
void input();
void output();
}
main()
{
bank b1;
b1.input();
b1.output();
}
in the above example, b1 is an object calling input and
output member functions, but that code is invisible to the
object b1
Is This Answer Correct ? | 0 Yes | 0 No |
Answer / jithin
Data abstraction is the virtue by which the object hides its
internal operation and data members from rest of the
program.
it makes it unnecessary for the client programs to
know how the data is internally arranged in the object.
Is This Answer Correct ? | 0 Yes | 0 No |
Answer / dashrath singh
In Data Abstraction Abstraction is a way through which we
can extract the useful information when it is called by
Objects or variables by hiding the definition
Is This Answer Correct ? | 0 Yes | 0 No |
Answer / mrk
Data Abstraction is the process of representing the essential features without including the background details.
Is This Answer Correct ? | 0 Yes | 0 No |
Answer / jaikant mishra
Data Abstraction refers to the act of representing
essential features without including its background details.
it is the selective examination of certain aspects of a
problem.the goal of abstraction is to isolate those apects
that are important for some purpose and surpress the other
that are unimportant.different abstraction for the same
thing are possible.
ex:
the information required by a carpenter for furnishing a
building is different from the information required by a
plumber or electrician for working on the same building
Is This Answer Correct ? | 1 Yes | 1 No |
Answer / nitin
Abstraction is turning all the answers in this post to just an answer :)
Is This Answer Correct ? | 0 Yes | 0 No |
Answer / sattu
To choose the best idea from the broad idea is called
abstraction.and it is a process;
Is This Answer Correct ? | 0 Yes | 0 No |
Answer / kuldeep singh
data abstraction is the object oriented programming feature
it will refer the essential details and not include the
internal details .and user defined data types introduced
like as a any class .example -----drive a car. 2. index of
book . 3. internal activities in human beings.
Is This Answer Correct ? | 0 Yes | 0 No |
Answer / m.shahzad
In Object Oriented Programming Data Abstraction is the
Technique which is Used to Minimize the Complexity...
what is Mean Complexity?
its mean that before u go for a project let say its one module
you don't see its entire details except that u see what do
you needed at this time to complete this specific problem not
all the Complex detail of this module u need this concept
minimize the complexity of that Problem through the concept
of Abstraction
Is This Answer Correct ? | 0 Yes | 0 No |
How to allocate memory dynamically for a reference?
What is pointer with example?
When is the destructor called?
What is the first name of c++?
What is unary operator? List out the different operators involved in the unary operator.
write a program that will produce the ff. output. "what fruit will you buy? 1)apple 2)orange 3)mango ENTER CHOICE (1,2 or 3)> HOW MANY WILL YOU BUY?> THAT WILL COST XX.XX
What is a static element?
What do you mean by function overriding & function overloading in c++?
Explain how to initialize a const data member.
Explain the use of this pointer?
Write about the various sections of the executable image?
How the delete operator differs from the delete[]operator?