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 |
what is the difference between class to class type conversion and copy constructor ?
i hav very low percentage in 12th n BSCwhich is around 50.......coz it was just imposed on me 2 b a science graduate,nw m doin MCA n hav aggregate 74% ....what shud i answer if company's HR ask me about dis much low previous percentage??????
In the following declaration of main, "int main(int argc, char *argv[])", to what does argv[0] usually correspond? 1) The first argument passed into the program 2) The program name 3) You can't define main like that
What is function overloading?,describe it with the example.
Name an advantage of array over linked list?
24 Answers GML, IBM, Software Solutions,
What is for loop and its syntax?
Why is abstraction needed?
can we make a class static without using static keyword?
what is overloading and overriding?
Program to check whether a word is in all capital letters
WAP to find the ambiguities in Multiple Inheritance? How are they resolved.(Virtual Functions)
How do you use inheritance in unity?