what is data Abstraction? and give example
Answers were Sorted based on User's Feedback
Answer / prathiba
data abstraction is a process of representing the essential
features without including implementation details.
Is This Answer Correct ? | 1531 Yes | 140 No |
Answer / karthick
Abstraction is the process of exhibiting only the essential
characteristics of an object depending on programmers
view.It is complement to encapsulation.
Is This Answer Correct ? | 359 Yes | 101 No |
Answer / guest
data abstraction is the process of representing essential
details not including inter nal details.example index of
the book
Is This Answer Correct ? | 281 Yes | 50 No |
Answer / namitha
Data abstraction refers to, providing only essential
features by hiding its background 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 ? | 263 Yes | 58 No |
Answer / m.harikrishnam raju
It refers we can represents essential features without
including background details and explanations
ex:
index of text book.
class School
{
void sixthclass();
void seventhclass();
void tenthclass();
}
Is This Answer Correct ? | 205 Yes | 69 No |
Answer / pintu gupta
in oops the data abstraction is defined as represent
essential features without including background details or
implementation details.class use the concept of data
abstraction.
Is This Answer Correct ? | 135 Yes | 49 No |
Answer / vishwajit kumar
data abstraction is a process of representing the essential
elements,hiding the back ground details.
Is This Answer Correct ? | 95 Yes | 27 No |
Answer / deepak
DATA ABSTRACTION MEANS ESSENTIAL FEATURES WITHOUT GIVING
THE BACKGRAOUND DETAILS
Is This Answer Correct ? | 73 Yes | 26 No |
Answer / m.arul
Data abstraction is a process of representing the essential
features without including background properties(or)
implementation details.
Is This Answer Correct ? | 67 Yes | 21 No |
Answer / prakash
simply hiding implementation details and show what ever the
client programmer needs. there are two programmers in
devolopint the project Class Creators (who create new
datatypes) and client programmers (class consumers who use
data types in their applications).
It is helpful to break up the playing field into class
creaters and client programmers. The goal of the client
programmer is to collect a toolbox full of classes to use
for rapid application devolopment. The goal of the class
creator is to build a class that exposes only whats
necessary to the client programmers and keeps everything
else hidden. why because the client programmers cant use it
which means that the class creatior can change the hidden
portion at will without worrying about the impact to anyone
else. The hidden portion usually represents the tender
insides of an object that could easily be corrupted by a
careless or uninformed client programmer so hiding the
implementation reduces program bugs.
It is acheived in c++ through class boundaries (private
public and protected keywords...)
ex: class Light
{
private:
//data
public:
on();
off();
//.....
};
Light lt.on();
Is This Answer Correct ? | 63 Yes | 17 No |
Are php strings immutable?
What is endl c++?
What is a static element?
Write a Program for find and replace a character in a string.
What are the advantages of c++?
What is the full form of stl in c++?
Write down the equivalent pointer expression for referring the same element a[i][j][k][l]?
What parameter does the constructor to an ofstream object take?
Can java be faster than c++?
Why do we use templates?
Is there structure in c++?
int f() { int I = 12; int &r = I; r += r / 4; int *p = &r; *p += r; return I; } Referring to the sample code above, what is the return value of the function "f()"? a) 12 b) 15 c) 24 d) 17 e) 30