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

Explain static and dynamic memory allocation with an example each.

825


I want explanation for this assignment: how to connect mysql database using c/c++,please explain this detailly?

1762


Do you know about C++ 11 standard?

837


What is the sequence of destruction of local objects?

707


What is setf in c++?

809






Explain what are accessor methods?

846


Which compiler does turbo c++ use?

790


Explain the concept of memory leak?

834


Why c++ does not have finally?

801


Explain how to initialize a const member data.

776


What do c++ programmers do?

759


What are shallow and deep copies?

825


How do you master coding?

790


Write about the stack unwinding?

819


How static variables and local variablesare similar and dissimilar?

777