what is data Abstraction? and give example
Answers were Sorted based on User's Feedback
Answer / aarti pundir
Abstraction refers to the act of representing essential features without including the background details or explanations.
example: you driving a car.you only know esstential features to drive a car eg: gear handling,steering,clutch,acclerator,breaker etc
bt while driving do u get into onterenal details of car like wiring,motor working etc.u just change the gear or apply the breakes etc.what happening inside is hidden form u.
| Is This Answer Correct ? | 0 Yes | 1 No |
Is the information that is processed by a computer to
represent in some sense the part of reality.
Eg.
Personnel File:
Relevant information are included; Name,Age,Address,Education,
Salary,Designation
Irrelevant info are not included; Hair color,Weight,Height,
Hobbies
| Is This Answer Correct ? | 0 Yes | 1 No |
Answer / srija
abstraction is nothing but reprasenting essential futers
rather than including its background details
| Is This Answer Correct ? | 0 Yes | 1 No |
Answer / anil kumar
abstraction does not means that information is not available.
it means that all the informatin is available but only
necessary information will be shown to the user.example-a
computer...we do not know a computer as a collection of
hardware and hundreds of chips.we know it only at our level
of usage.
| Is This Answer Correct ? | 0 Yes | 1 No |
Answer / gaurav chauhan
Abstraction is the process
of identifying the essential
aspect of an entity and
ignoring the unimportant
properties
| Is This Answer Correct ? | 0 Yes | 1 No |
Answer / swara
Data Abstraction is extraction of essential information for a particular purpose and ingnoring the remainder of the information,e.g. a car is consisted of an engine,air filters,a carburetor,a gear box,a steering,a fuel tank,tyres etc.A driver of a car need not to be bothered about several finer points of the car,he/she should know what it requires to drive a car.Take another user, a car mechanic, he will require different set of information in order to repair the car.
| Is This Answer Correct ? | 0 Yes | 1 No |
Answer / pramod kumar kar
According to Grady Booch "An Abstraction denotes the
Essential characterstics of an object that distinguishes it
from all other kinds of objects & that provides cripsly
defined conceptual boundaries,relative to the perspective
to the viewer"
Data abstraction is the process of identifying properties
& methods related to a specific entity as applicable to the
application
| Is This Answer Correct ? | 0 Yes | 1 No |
Answer / shiva
data abstraction is hidding of unwanted data.
example: car
for driver only steering, gears, breaks are visible and engine is not visible so hidding engine for driver is unwanted.
| Is This Answer Correct ? | 0 Yes | 1 No |
Answer / naresh muthu
data abstraction is nothing but the abstraction of data from various data which incude represeentation of essential features without icluding background details
| Is This Answer Correct ? | 0 Yes | 1 No |
Answer / rajendran
data abstraction is the process by which internal
characteristics of an class is hided to the outside world.
| Is This Answer Correct ? | 0 Yes | 2 No |
How to avoid changing constant values?
What is recursion?
Define friend function.
Is dev c++ free?
What are associate containers?
What is the difference between equal to (==) and assignment operator (=)?
What is a "Copy Constructor"?
What does override mean in c++?
How would you use qsort() function to sort an array of structures?
What is a string example?
Suppose that data is an array of 1000 integers. Write a single function call that will sort the 100 elements data [222] through data [321].
can any one help to find a specific string between html tags which is changed to a sting.. weather.html looks (for location) is <location>somewhere</location> #include <iostream> #include <fstream> #include <string> using namespace std; string find_field(string myPage,string); int main (void) { string page, line, location, temperature; ifstream inputFile("weather.xml"); while(getline(inputFile, line)) { page.append(line); line.erase(); } // Now page is a string that contains the whole xml page // Here you need to write something that finds and // extracts location and temperature from the XML // data in the string page and stores them in // the strings location and temperature respectively location=find_field(page,"location"); temperature=find_field(page,"temp_c"); cout << "Location: "<<location << endl; cout << "Temperature: " << temperature << endl; system("pause"); } string find_field(string myPage,string find_string){ int temp=myPage.find(find_string); if(temp!=string::npos) { cout << "Match found at " << temp << endl; } return "found?"; } ///