Answers were Sorted based on User's Feedback



what is data Abstraction? and give example..

Answer / vijay

Data Abstration is the simplified representaion of a Concept C,if a class 'A' derives this concept C must implement all things present in the concept,else class A does not makes sense.

Eg. RGB - Red,Green,Blue (Data Abstraction)
Any color is a combination of RGB.

Is This Answer Correct ?    0 Yes 0 No

what is data Abstraction? and give example..

Answer / mushtak khan

Data abstraction is mechanism of using the essential features
without background details.

Is This Answer Correct ?    0 Yes 0 No

what is data Abstraction? and give example..

Answer / raghul

IT IS A PROCESS OF SEPARATING ESSENTIAL AND NON-ESSENTIAL INFORMATION ABOUT A CLASS OR OBJECT.
A CLASS OR OBJECT MAY HAVE NUMBER OF INFORMATION ASSOCIATED WITH IT.
FOR DIFFERENT USERS DIFFERENT SET OF INFORMATION
EXAMPLE:- #INCLUDE <IOSTREAM>
USING NAMESPACE STD

INT MAIN()
{
COUT<<"HELLO C++"<<END1;
RETURN 0;
}

Is This Answer Correct ?    0 Yes 0 No

what is data Abstraction? and give example..

Answer / yash modi

Data Abstraction means hide internal processing from user of outside world.He can See Only Visually see or do input-output but not know how operation is done .

Is This Answer Correct ?    0 Yes 0 No

what is data Abstraction? and give example..

Answer / chirasani yasoda krishna

data abstraction is nothing but hiding un necessary data and providing useful data to the user for ecample if you write a programm internally it converts 0sand1s it hides and shows you an out put another real time example you have log on to mycomputer it is devplped by programs it hides the code and shows useful information to the user

Is This Answer Correct ?    0 Yes 0 No

what is data Abstraction? and give example..

Answer / savin gahlawat

Act of representing essential data without displaying background details is known as data abstraction.

Is This Answer Correct ?    0 Yes 0 No

what is data Abstraction? and give example..

Answer / rohit kumar

abstraction is a programming technique that relies on the separation of interface and implementation

Is This Answer Correct ?    0 Yes 0 No

what is data Abstraction? and give example..

Answer / rishabh

Data Abstraction : It is a process of representing only the
essential features of any object without including
implement details...

Is This Answer Correct ?    1 Yes 2 No

what is data Abstraction? and give example..

Answer / chealsha

Data abstraction is a process of representing essential
features without showing the background details.
For example:
#include<iostream.h>
#include<conio.h>
#include<math.h>
void main()
{
clrscr();
int a,b;
cout<<"enter a";
cin>>a;
b=sqrt(a);
cout<<"square of a="<<b;
getch();
}

In the above example,we are doing the square of "a" where
we can only see/use the sqrt function but we cant see the
background deails like coding of sqrt().

Is This Answer Correct ?    0 Yes 1 No

what is data Abstraction? and give example..

Answer / varun k. singh

The concept of abstraction relates to the idea of hiding data that are not needed for presentation. The main idea behind data abstraction is to give a clear separation between properties of data type and the associated implementation details. This separation is achieved in order that the properties of the abstract data type are visible to the user interface and the implementation details are hidden. Thus, abstraction forms the basic platform for the creation of user-defined data types called objects. Data abstraction is the process of refining data to its essential form. An Abstract Data Type is defined as a data type that is defined in terms of the operations that it supports and not in terms of its structure or implementation.

In object-oriented programming language C++, it is possible to create and provide an interface that accesses only certain elements of data types. The programmer can decide which user to give or grant access to and hide the other details. This concept is called data hiding which is similar in concept to data abstraction.

Reasons for the need of Abstraction
Flexibility in approach:
By hiding data or abstracting details that are not needed for presentation, the programmer achieves greater flexibility in approach.

Enhanced Security:
Abstraction gives access to data or details that are needed by users and hide the implementation details, giving enhanced security to application.

Easier Replacement:
With the concept of abstraction in object-oriented programming language, it is possible to replace code without recompilation. This makes the process easier and saves time for users.

Modular Approach:
In object-oriented programming language C++, the abstraction concept helps users to divide the project application into modules and test each of them separately. Then all modules are integrated and ultimately tested together. This approach makes the application development easier.

Is This Answer Correct ?    0 Yes 1 No

Post New Answer

More C++ General Interview Questions

what is COPY CONSTRUCTOR and what is it used for?

0 Answers  


What is a parameterized type?

1 Answers  


What is the stack?

5 Answers   IBM, ICICI,


Why main function is special in c++?

0 Answers  


Write about the stack unwinding?

0 Answers  






Find the second maximum in an array?

12 Answers   HCL,


why is c++ called oops? Explain

0 Answers  


What is boyce codd normal form in c++?

0 Answers  


Is c++ vector a linked list?

0 Answers  


How many characters are recognized by ANSI C++?

0 Answers   Hexaware, NIIT,


Explain terminate() function?

0 Answers  


What is the best c++ book for beginners?

0 Answers  


Categories