what is data Abstraction? and give example
Answers were Sorted based on User's Feedback
Answer / tamilarasan
A data abstraction is a simplified view of an object that includes only features one is interested in while hides away the unnecessary details.
eg: creation of object from its class.
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / kiribati
Abstraction is the process of capturing the essential or
distinguishing features of
something while suppressing or ignoring the detail.
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / santosh kumar
Abstraction is one of the most powerful and vital features provided by object-oriented programming language. Modularity is very important in any programming language, it provides flexibility to users for using the programming language. This aspect is well achieved with high performance by the concept of abstraction. In object-oriented programming language the programmer can abstract both data and code when needed.
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / mansi
In this we hide the complexity of data from being used,
only useful and authorized information is made visible to
the users.
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / rohit shori
data abstraction
3 types:-
Physical level describes how a record (e.g., customer) is
stored.
Logical level: describes data stored in database, and the
relationships among the data.
type customer = record
name : string; street :
string; city : integer; end;
View level: application programs hide details of data
types. Views can also hide information (e.g., salary) for
security purposes.
| Is This Answer Correct ? | 3 Yes | 2 No |
Answer / sunny verma
abstraction means act of represeting essential features
without including background detail and explanation.
The classes uses the concept of data abstraction called
Abstract data Type(ADT)
Clases defines the list of abstract attribute may be
size,weight,cost and function to operate on these
attributes.
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / lucky
Absraction is the process of hiding certain details of how
the data is stored and maintained, and representing
essential features :)
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / afjal ansari & shekhar ya
Abstraction is about reducing complexity and ignoring
unneccesary details.
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / deepak
data abstaction is process of hiding the datamambers of one
class by using private access spcifier from other class
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / prasenjit chatterjee
Abstraction means that just represents the essential
feature of some thing without including much details.
So the data abstraction means that does't define the
internal structure of the data, but allows difference
operations on it. Such data types are called abstract data
type or (ADT), like stack queues are the example of an
abstract data type
| Is This Answer Correct ? | 1 Yes | 0 No |
reading material is provided 3 books for c++ if u need more do let me know thnx i hve lots of material do let me know if u want it
class X { private: int a; protected: X(){cout<<"X constructor was called"<<endl;} ~X(){cout<<"X destructor was called"<<endl} }; Referring to the code above, which one of the following statements regarding "X" is TRUE? a) X is an abstract class. b) Only subclasses of X may create X objects. c) Instances of X cannot be created. d) X objects can only be created using the default copy constructor. e) Only friends can create instances of X objects.
Is c++ high level programming language?
1)#include <iostream.h> int main() { int *a, *savea, i; savea = a = (int *) malloc(4 * sizeof(int)); for (i=0; i<4; i++) *a++ = 10 * i; for (i=0; i<4; i++) { printf("%d\n", *savea); savea += sizeof(int); } return 0; } 2)#include <iostream.h> int main() { int *a, *savea, i; savea = a = (int *) malloc(4 * sizeof(int)); for (i=0; i<4; i++) *a++ = 10 * i; for (i=0; i<4; i++) { printf("%d\n", *savea); savea ++; } return 0; } The output of this two programs will be different why?
If a round rectangle has straight edges and rounded corners, your roundrect class inherits both from rectangle and from circle, and they in turn both inherit from shape, how many shapes are created when you create a roundrect?
There is a array of 99 cells and we have to enter 1-100 elements in it , no two elements would repeat , so the is one no. missing because 99 cells and 1-100 nos. so we had to implement a function to find that missing no.
What are the benefits of oop in c++?
How to stop conversions among objects?
the maximum length of a character constant can be a) 2 b) 1 c) 8
write a program that takes 5 digit no and calculate 2 power that no and print it.
Define stacks. Provide an example where they are useful.
What is #include cmath?