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 do you mean by public, private, protected and friendly?

Answer Posted / achal ubbott

public means access to the object of the class, created in
outside world.

private and protected are almost the same, except the
difference that protected members are inheritable and thus
can be used by derived class. These can be accessed only by
the public function members of the class.

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the two different types of polymorphism?

1158


What is the diamond problem in inheritance?

1150


What are the benefits of oop?

1275


Which method cannot be overridden?

1109


what type of questions

2139


What is class encapsulation?

1111


what is the drawback of classical methods in oops?

3394


How Do you Code Composition and Aggregation in C++ ?

25502


What are the important components of cohesion?

1032


What do you mean by overloading?

1086


Can main method override?

1120


how to get the oracle certification? send me the answer

2168


Why do we need oop?

1217


Write a C++ program without using any loop (if, for, while etc) to print prime numbers from 1 to 100 and 100 to 1 (Do not use 200 print statements!!!)

2118


What does oop mean in snapchat?

1257