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 |
Which coding certification is best?
how can i access a direct (absolute, not the offset) memory address? here is what i tried: wrote a program that ask's for an address from the user, creates a FAR pointer to that adress and shows it. then the user can increment/decrement the value in that address by pressing p(inc+) and m(dec-). NOW, i compiled that program and opened it twice (in 2 different windows) and gave twice the same address to it. now look what happen - if i change the value in one "window" of the program, it DOES NOT change in the other! even if they point to the same address in the memory! here is the code snippet: //------------------------------------------------------ #include <stdio.h> //INCLUDE EVERY KNOWN HEADER FILE #include <conio.h> //FOR ANY CASE... #include <iostream.h> #include <dos.h> #include <process.h> main() { int far *ptr; //FAR POINTER!!! long address; char key=0; //A KEY FROM THE KEYBOARD int temp=0; clrscr(); cout<<"Enter Address:"; cin>>hex>>address; //GETS THE ADDRESS clrscr(); (long)ptr=address; temp=*ptr; //PUTS THE ADDRESS IN THE PTR cout<<"["<<hex<<(unsigned long)ptr<<"]="<<*ptr<<" = "<< (char)(*ptr); //SHOWS: [address]=value=ASCII symbol. while (key!=27) //WHILE YOU DONT PRESS ESC. { while(!kbhit()) //WHILE KEY IS NOT PRESSED { if (temp!=*ptr) { temp=*ptr; clrscr(); cout<<"["<<hex<< (unsigned long)ptr<<"]="<<*ptr<<" = "<<(char)(*ptr); }; //IF THE VALUE HAS CHANGED, CLEAR THE SCREEN AND SHOW //AGAIN if (key=='p') {key=0; (*ptr)++; } //INCREMENT VALUE if (key=='m') {key=0; (*ptr)--; } //DEC. VALUE }; key=getch(); //IF A KEY IS PRESSED, READ IT FROM THE //KEYBOARD }; return 0; //IF ESC WAS THE KEY, EXIT THE PROGRAM } //---------------------------------------------------------
What is namespace std; and what is consists of?
What does count ++ do in c++?
What does it mean to declare a destructor as static?
What is the C-style character string?
What is prototype in c++ with example?
Is c++ a low level language?
How much is c++ certification?
What is stl containers in c++?
What is capacity in vector in c++?
Describe run-time type identification?