what is data Abstraction? and give example
Answer Posted / maddy
Data Encapsulation is the process of combining data and
functions into a single unit called class. By this method
one cannot access the data directly. Data is accessible
only through the functions present inside the class. Thus
Data Encapsulation gave rise to the important concept of
data hiding.
Example:
public class class1
{
void role1();
void role3();
}
class1 c=new class1();
c.role1();
c.role3();
---
dotnetpages.blogspot.com
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Can malloc be used in c++?
What is the oldest programming language?
What are the uses of static class data?
Does there exist any way to make the command line arguments available to other functions without passing them as arguments to the function?
What is the difference between structure and class?
What is the full name of logo?
What are the general quetions are in DEna bank manager IT/System interviews?
Explain the extern storage classes in c++.
Why should you learn c++?
What is the benefit of learning c++?
Difference between struct and class in terms of access modifier.
How is c++ used in the real world?
How long will it take to learn programming?
What are advantages of using friend classes?
What does the following code do: int c=0; cout< a) Undefined *Updated* b) 01 c) 00