what is data Abstraction? and give example
Answer Posted / namitha
Data abstraction refers to, providing only essential
features by hiding its background details.
example:
class result
{
int marks;
float percentage;
char name[20];
void input();
void output();
}
main()
{
bank b1;
b1.input();
b1.output();
}
in the above example, b1 is an object calling input and
output member functions, but that code is invisible to the
object b1.
Is This Answer Correct ? | 263 Yes | 58 No |
Post New Answer View All Answers
How to declare a pointer to an array of integers?
How do I run c++?
What are guid?
Explain the difference between struct and class in terms of access modifier.
What is the role of static keyword for a class member variable?
What is name hiding in c++?
Write a program to interchange 2 variables without using the third one.
What is the role of copy constructor in copying of thrown objects?
If a base class is an adt, and it has three pure virtual functions, how many of these functions must be overridden in its derived classes?
What is the sequence of destruction of local objects?
what is software cycle? What is a mission critical system ? What is the important aspect of a real-time system ? Explain the difference between microkernel and macro kernel. Give an example of microkernel.Why paging is used ? Which is the best page replacement algo and Why ? What is software life cycle ? How much time is spent usually in each phases and why Which one do U want to work if selected in Honeywell ? Which are the different types of testing ? What is a distributed system ? Some questions about CSP. Which languages do U know ? What are the differences between Pascal and C. questions from Compiler construction and Lisp. Which are the different computer architecture? What is the requirement in MIMD ? What is the difference between RISC and CISC processors ? Difference between loosely coupled and tightly coupled systems ? What is an open system?
To what does “event-driven” refer?
Is swift faster than c++?
What gives the current position of the put pointer?
What is private, public and protected inheritance?