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 |
What data structure is fastest, on average, for retrieving data: a) Binary Tree b) Hash Table c) Stack
Which is not an ANSII C++ function a) sin() b) tmpnam() c) kbhit()
Why do we need runtime polymorphism in c++?
1)#include <iostream.h> int main() { int *a, *savea, i; savea = a = (int *) malloc(4 * sizeof(int)); for (i=0; i<4; i++) *a++ = 10 * i; for (i=0; i<4; i++) { printf("%d\n", *savea); savea += sizeof(int); } return 0; } 2)#include <iostream.h> int main() { int *a, *savea, i; savea = a = (int *) malloc(4 * sizeof(int)); for (i=0; i<4; i++) *a++ = 10 * i; for (i=0; i<4; i++) { printf("%d\n", *savea); savea ++; } return 0; } The output of this two programs will be different why?
What is a "RTTI"?
What is meant by the term name mangling in c++?
When is the copy constructor called?
What is an iterator?
What do you know about near, far and huge pointer?
What is class in c++ with example?
How can a '::' operator be used as unary operator?
What are the advantages of c++?