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 public, protected, private?

Answer Posted / priya

public:public is a access specifier and it is used to access
class member through out the program .
private:private is a access specifier by default our variables are private when we didn't specify any data type for our variable.
protected:protected is a access specifier and its a immediate to derived 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 properties in oop?

1023


Which language is not a true object oriented programming language?

1061


What is for loop and its syntax?

1033


What are the benefits of interface?

991


What is abstraction example?

1041


Why is static class not inherited?

1040


There are two base class B1,B2 and there is one class D which is derived from both classes, Explain the flow of calling constructors and destructors when an object of derived class is instantiated.

1918


What is the main purpose of inheritance law?

1146


What is encapsulation c#?

1012


Write A Program to find the ambiguities in Multiple Inheritance? How are they resolved.(Virtual Functions)

4077


What is the real life example of polymorphism?

1111


what are the realtime excercises in C++?

2784


What is the renewal class?

2683


Is abstract thinking intelligence?

976


Get me a number puzzle game-program

2180