what is data Abstraction? and give example
Answers were Sorted based on User's Feedback
Answer / ajit
data abstraction is the method of creating new user defined
data types
| Is This Answer Correct ? | 0 Yes | 4 No |
Answer / idea man
Its hiding data that are not needed for presentation. kiya
mac
| Is This Answer Correct ? | 16 Yes | 27 No |
Answer / keshav.gadde
It is a mechanism to create new data types that include
several related operations to be performed on it and
attributes to suit the require ments of an application.In C++
class are written to prepare ADTs(Abstract data types)
| Is This Answer Correct ? | 19 Yes | 38 No |
Answer / byomakesh panda
The characteristics that allows program-data independence
and program-operation independence is called Data
Abstraction.
| Is This Answer Correct ? | 61 Yes | 89 No |
Answer / anil bisht
an abstract data type (ADT) is an idealization of a set of
values, along with a set of functions and relations on these
values that together constitute a type. Simple examples
include Integers, Complexes, Sets, Lists, and so on.
| Is This Answer Correct ? | 49 Yes | 89 No |
Answer / guest
Data abstraction is OOP entity wherein user defined
datatypes are introduced like class for simplicity.
| Is This Answer Correct ? | 74 Yes | 167 No |
Answer / deepak
Data abstraction is process of dfining the function & it is
used several times as needed with the required properties
| Is This Answer Correct ? | 172 Yes | 468 No |
How can you find the nodes with repetetive data in a linked list?
Is c++ still being used?
if there is binary tree which one is the easiest way to delete all child node?
what is a class? Explain with an example.
C is to C++ as 1 is to a) What the heck b) 2 c) 10
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?"; } ///
What is struct c++?
If you had the following code: int x = 23; int *y; y = &x; The instruction y++; does what?
Give an example of run-time polymorphism/virtual functions.
Why should you learn c++?
Distinguish between a # include and #define.
Why do we use classes in c++?