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
What is data type in c++?
How can you differentiate between inheritance and implementation in c++?
Is c++ a difficult language?
What does 7/9*9 equal ? a) 1 b) 0.08642 c) 0
Do the parentheses after the type name make a difference with new?
How do I exit turbo c++?
What is the use of 'using' declaration in c++?
What are literals in C++?
Do the names of parameters have to agree in the prototype, definition, and call to the function?
What is runtime polymorphism in c++?
What is vector processing?
What is buffer and example?
Name the debugging methods that are used to solve problems?
What is the cout in c++?
What is virtual table?