what is data hiding.

Answers were Sorted based on User's Feedback



what is data hiding...

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 data hiding...

Answer / mahesh

to secure data from other classes.

Is This Answer Correct ?    7 Yes 1 No

what is data hiding...

Answer / mahesh

to secure data from other classes.

Is This Answer Correct ?    3 Yes 1 No

Post New Answer

More OOPS Interview Questions

what is SPL in c++.

1 Answers  


Can abstract class have normal methods?

0 Answers  


pointers are support in C#? if yes then how to use it?

8 Answers   Softvision Solution,


can you give real time example for polymarphism

5 Answers   TCS,


DIFFRENCE BETWEEN STRUCTURED PROGRAMING AND OBJCET ORIENTED PROGRAMING.

5 Answers  






write a code for this:trailer recordId contains a value other than 99, then the file must error with the reason ‘Invalid RECORD_ID’(User Defined Exception).

0 Answers  


What is polymorphism in oops with example?

0 Answers  


c++ is a pure object oriented programming or not?

5 Answers   Wipro,


What is virtual class and friend class?

5 Answers   IBS, Intel, Wipro,


What is a macro? And how is a macro same as a template?

4 Answers  


explain the concepts of oops?

1 Answers  


What are the access specifiers avaible in c++?

4 Answers  


Categories