Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

Answers were Sorted based on User's Feedback



what is data Abstraction? and give example..

Answer / gaurab varshney

Data Abstraction is the process by which data and programs
are defined with a representation similar to its meaning
(semantics), while hiding away the implementation details.
Abstraction tries to reduce and factor out details so that
the programmer can focus on a few concepts at a time. A
system can have several abstraction layers whereby
different meanings and amounts of detail are exposed to the
programmer.
For example, low-level abstraction layers expose details of
the hardware where the program is run, while high-level
layers deal with the business logic of the program.

Is This Answer Correct ?    1 Yes 0 No

what is data Abstraction? and give example..

Answer / sachin

Data Abstraction is the process which represent essential
feature without implementation of details.
Ex. Soccer Ball, Ball is having same structure behavior
like common ball

Is This Answer Correct ?    1 Yes 0 No

what is data Abstraction? and give example..

Answer / amit singh

Data abstraction is the process of showing necessary
details to the user by hiding the complexity behind them.

real time ex-

T. V remote control we can see the buttons on it but how
the circuitry work after pressing the particular button is
hidden from the user.

even as per java code we can give ex of abstract class

Is This Answer Correct ?    1 Yes 0 No

what is data Abstraction? and give example..

Answer / ravin

data abstraction is a method to represent essential features of a data without including background details or unimportant matter.
a function/process used to define the use of this data.

Is This Answer Correct ?    1 Yes 0 No

what is data Abstraction? and give example..

Answer / swati

data abstraction denote essential feature of an object.. in abstraction make only relivent detail of an object.
example- when u want to snd an e-mail msg,u should know the process of writting e-mail,snding it to the recievr.however it is not necessary for u to know the entire process of sending the emil msg across the n/w

Is This Answer Correct ?    1 Yes 0 No

what is data Abstraction? and give example..

Answer / apoorva

It is the process of hiding the complexity and inner
workings of a class, so that users dont have to know how it
operates.

For example- You dont have to know how a tv works if you
only wanted to view a picture.

Is This Answer Correct ?    1 Yes 0 No

what is data Abstraction? and give example..

Answer / deep shah

"Abstraction refers to the act of represent essential features without including the background details or explanation".

Is This Answer Correct ?    1 Yes 0 No

what is data Abstraction? and give example..

Answer / v.santhoshini

*Data Abstraction is a collection of related data items
together with an associated set of operations.
*data operations &relations are studied indpendent of
implementation.

Is This Answer Correct ?    1 Yes 0 No

what is data Abstraction? and give example..

Answer / abelthom

data abstraction is the process of looking at the data at
higher levels without being concerned with the lower levels
(i.e. implementation considerations)

Is This Answer Correct ?    1 Yes 0 No

what is data Abstraction? and give example..

Answer / sankalp

abstraction - it is the act of representing the essential features without including the background details.
classes uses the concept of abstraction.


Benefits of Data Abstraction:
Data abstraction provide two important advantages:

Class internals are protected from inadvertent user-level errors, which might corrupt the state of the object.

The class implementation may evolve over time in response to changing requirements or bug reports without requiring change in user-level code.

By defining data members only in the private section of the class, the class author is free to make changes in the data. If the implementation changes, only the class code needs to be examined to see what affect the change may have. If data are public, then any function that directly accesses the data members of the old representation might be broken.



Data Abstraction Example:

Any C++ program where you implement a class with public and private members is an example of data abstraction. Consider the following example:

#include <iostream>
using namespace std;

class Adder{
public:
// constructor
Adder(int i = 0)
{
total = i;
}
// interface to outside world
void addNum(int number)
{
total += number;
}
// interface to outside world
int getTotal()
{
return total;
};
private:
// hidden data from outside world
int total;
};
int main( )
{
Adder a;

a.addNum(10);
a.addNum(20);
a.addNum(30);

cout << "Total " << a.getTotal() <<endl;
return 0;
}
When the above code is compiled and executed, it produces following result:

Total 60

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More C++ General Interview Questions

Which sort does c++ use?

0 Answers  


Write a program to read the data and evaluate the results of the election. Print all output to the screen. Your output should specify: The total number of votes, the number of valid votes and the number of spoilt votes. The winner(s) of the election. Hint: An appropriate search should be used to determine the winner(s). The votes obtained by each candidate sorted in terms of the number of votes obtained. Hint: An appropriate sort should be used to sort the candidate(s). The Source code should be saved as VotingSystem. Project Input: Candidates’ Names and Numbers 2501 Victor Taylor 2502 Denise Duncan 2503 Kamal Ramdhan 2504 Michael Ali 2505 Anisa Sawh 2506 Carol Khan 2507 Gary Owen Votes 3 1 2 5 4 3 5 3 5 3 2 8 1 6 7 7 3 5 6 9 3 4 7 1 2 4 5 5 1 4 0 Project Output: Invalid vote: 8 Invalid vote: 9 Number of voters: 30 Number of valid votes: 28 Number of spoilt votes: 2 The winner(s): 2503 Kamal Ramdhan 2505 Anisa Sawh Candidate Score 2503 Kamal Ramdhan 6 2505 Anisa Sawh 6 2501 Victor Taylor 4 2504 Michael Ali 4 2502 Denise Duncan 3 2507 Gary Owen 3 2506 Carol Khan 2

0 Answers  


Problem 5: Hero's Formula is A method for calculating the area of a triangle when you know the lengths of all three sides. Let a, b, c be the lengths of the sides of a triangle. The area is given by:A= pp-ap-b(p-c) | wherep= a+b+c2 | | Write a C-language code to calculate area of triangle using above method. Take the three lengths of the triangle from the user and display the area that your program calculates.

0 Answers   Maxobiz,


How much do c++ programmers make?

0 Answers  


What can I safely assume about the initial values of variables which are not explicitly initialized?

0 Answers  


What C++ libraries are you proficient with?

1 Answers   Google,


What do you mean by volatile and mutable keywords used in c++?

0 Answers  


Explain what are accessor methods?

0 Answers  


List out some of the OODBMS available?

1 Answers  


How can we access protected and private members of a class?

0 Answers  


Can we get the value of ios format flags?

0 Answers  


Does there exist any other function which can be used to convert an integer or a float to a string?

0 Answers  


Categories