Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

what is data hiding.

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is debug class?what is trace class? What differences are between them? With examples.

2255


what type of question are asked in thoughtworks pair programming round ?

2267


Why is it so that we can have virtual constructors but we cannot have virtual destructors?

5042


c++ program to swap the objects of two different classes

2471


What is polymorphism explain its types?

1214


Can we have inheritance without polymorphism?

1077


What is the diamond problem in inheritance?

1198


What is multilevel inheritance explain with example?

1199


Can a varargs method be overloaded?

1155


Why we use classes in oop?

1094


Which language is pure oop?

1065


program for insertion ,deletion,sorting in double link list

2744


What is the benefit of oop?

1101


Will I be able to get a picture in D drive to the c++ program? If so, help me out?

2253


What does <> mean pseudocode?

1259