what is data Abstraction? and give example
Answers were Sorted based on User's Feedback
Answer / chandan jana
The main idea behind data abstraction is to give a clear
separation between properties of data type and the
associated implementation details. This separation is
achieved in order that the properties of the abstract data
type are visible to the user interface and the
implementation details are hidden. Thus, abstraction forms
the basic platform for the creation of user-defined data
types called objects. Data abstraction is the process of
refining data to its essential form.
In object-oriented programming language C++, it is possible
to create and provide an interface that accesses only
certain elements of data types. The programmer can decide
which user to give or grant access to and hide the other
details. This concept is called data hiding which is similar
in concept to data abstraction.
Is This Answer Correct ? | 3 Yes | 0 No |
Answer / soumitra
It is the process pf showing the essential features of
class by hiding the background details.
Is This Answer Correct ? | 2 Yes | 0 No |
Answer / gnanamoorthi s
The data abstraction refers to the basic important thinks is
not a detailed version or implementation.
Is This Answer Correct ? | 2 Yes | 0 No |
Answer / sam
to show only the necessary information but hiding all
implementing details
Is This Answer Correct ? | 2 Yes | 0 No |
Answer / amit joshi
Abstraction refers to the act of representing essential features without including background details and explanations.
Is This Answer Correct ? | 4 Yes | 2 No |
Answer / romeo
This is a DBMS mechanism,
whereby, the implementation/
background details are hidden
from the end users.
Is This Answer Correct ? | 2 Yes | 0 No |
Answer / parvathi
Data Abstraction increases the power of programming language
by creating user defined data types. Data Abstraction also
represents the needed information in the program without
presenting the details.
Is This Answer Correct ? | 2 Yes | 1 No |
Answer / sumathi
Data Abstraction is the act of representing the essential
features of an object without including the background
details.
Is This Answer Correct ? | 2 Yes | 1 No |
Answer / babu
data abstraction is nothing but a special mechanism
is used to create user define data types with the help
of classes.
ex:
class student
{
student name;
student id;
student password;
}
Is This Answer Correct ? | 2 Yes | 1 No |
Why null pointer is used?
What is the best way to declare and define global variables?
Should the this pointer can be used in the constructor?
What character terminates all character array strings a) b) . c) END
What is a container class? What are the types of container classes in c++?
What is srand c++?
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.
Define pre-condition and post-condition to a member function in c++?
Will a C compiler always compile C++ code a) Yes b) No c) Only optimized compilers
Should I learn c or c++ first?
What is an Object/Instance?
Can class objects be passed as function arguments?