what is data hiding.
Answers were Sorted based on User's Feedback
Answer / arvind
Data & Functions in C++ are private by default. That means there is no previlige outside the class. The functions or objects defined outside the class can't access the data and functions.So by making data and functions private with in the class, its making the data hiding and function hiding. By default data is private and functions are public. So this is the concept of data hiding
| Is This Answer Correct ? | 9 Yes | 2 No |
Which keyword is written to use a variable declared in one class in the other class?
What is the use of fflush(stdin) in c++?
What are the main differences between procedure oriented languages and object oriented languages?
9 Answers IBM, Infosys, Wipro,
Why can't we have instance(stack) of a class as a member of the same class like eg.Class A{A obj;} as we can have self refential pointer
why to use template classes in c++?
write a program to find the largest of two numbers without using for,while,switch,if else, conditional operator and do while using c++ pgmng language
Describe what an Interface is and how it?s different from a Class.
What is the differances between a abstract calss and interface
What does enum stand for?
to find out the minimum of two integer number of two different classes using friend function
can we make a class static without using static keyword?
What is the example of polymorphism?