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 is a buffer c++?

600


Which is not an ANSII C++ function a) sin() b) tmpnam() c) kbhit()

1019


How is new() different from malloc()?

645


Why is it necessary to use a reference in the argument to the copy constructor?

641


What is meant by const_cast?

663






Is c++ harder than java?

581


How does list r; differs from list r();?

703


Why the usage of pointers in C++ is not recommended ?

910


What is the sequence of destruction of local objects?

570


What is c++ mutable?

713


Write a function that swaps the values of two integers, using int* as the argument type?

620


Why do we use the using declaration?

672


What is the fastest c++ compiler?

599


What are mutator methods in c++?

659


Can a list of string be stored within a two dimensional array?

589