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


Please Help Members By Posting Answers For Below Questions

What does int * mean in c++?

633


Can a new be used in place of old mallocq? If yes, why?

633


What do you understand by a pure virtual member function?

547


What is the use of string in c++?

549


Explain one method to process an entire string as one unit?

929






How can I improve my c++ skills?

556


What are the types of pointer?

547


Differentiate between an external iterator and an internal iterator? What is the advantage of an external iterator.

614


Which is the best c++ compiler for beginners?

556


What is a syntax in c++?

604


Explain abstraction.

616


How is computer programming useful in real life?

596


How can I learn c++ easily?

622


Are strings immutable in c++?

653


Which of the following is evaluated first: a) && b) || c) !

1803