ALLInterview.com :: Home Page            
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
Google
   
 
Categories >> Software >> Programming Languages >> C++ >> C++ General
 
 


 

 
 STL interview questions  STL Interview Questions (93)
 OOPS interview questions  OOPS Interview Questions (563)
 C++ General interview questions  C++ General Interview Questions (459)
Question
what is data Abstraction? and give example
 Question Submitted By :: C++-General
I also faced this Question!!     Answer Posted By  
 
Answer
# 1
data abstraction is a process of representing the essential
features without including implementation details.
 
Is This Answer Correct ?    1332 Yes 114 No
Prathiba
 
Answer
# 2
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 ?    299 Yes 80 No
Karthick
 
 
 
Answer
# 3
data abstraction is the process of representing essential
details not including inter nal details.example index of
the book
 
Is This Answer Correct ?    221 Yes 33 No
Guest
 
Answer
# 4
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 ?    169 Yes 31 No
Namitha
 
Answer
# 5
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 ?    171 Yes 58 No
M.harikrishnam Raju
 
Answer
# 6
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 ?    111 Yes 42 No
Pintu Gupta
 
Answer
# 7
data abstraction is a process of representing the essential
elements,hiding the back ground details.
 
Is This Answer Correct ?    73 Yes 20 No
Vishwajit Kumar
 
Answer
# 8
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 ?    50 Yes 7 No
Prakash
 
Answer
# 9
DATA ABSTRACTION MEANS ESSENTIAL FEATURES WITHOUT GIVING
THE BACKGRAOUND DETAILS
 
Is This Answer Correct ?    58 Yes 18 No
Deepak
 
Answer
# 10
Data abstraction is a process of representing the essential
features without including background properties(or)
implementation details.
 
Is This Answer Correct ?    49 Yes 14 No
M.arul
 

 
 
 
Other C++ General Interview Questions
 
  Question Asked @ Answers
 
if int1 has the value 12, int has the value 18, and int3 has the value 21, what is the result: int1 < int2 && int2 < int 3   3
What are the total number of lines written by you in C/C++? What is the most complicated or valuable program written in C/C++? Intel 2
difference between macro and function?   3
What is the output of printf("%d")? HCL 57
They will ask u question about single linked list?. Write Code for to insert delete node. Persistent 2
How to change constant values? Symphony 6
Disadvantages of c++ Hcl 8
why we cant create array of refrences   4
please help to write the code of chess game in c++?????????? NEC 1
When copy constructor can be used? Symphony 4
What is the difference between Class and Structure? HP 35
What is a dangling pointer?   2
 
For more C++ General Interview Questions Click Here 
 
 
 
 
 


   
Copyright Policy  |  Terms of Service  |  Articles  |  Site Map  |  RSS Site Map  |  Contact Us
   
Copyright 2013  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  KalAajKal.com