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 exactly is polymorphism?

1122


What is destructor example?

1040


What is the difference between abstraction and polymorphism?

1091


What is the point of polymorphism?

1033


What is this pointer in oop?

1064


hi all..i want to know oops concepts clearly can any1 explain??

2124


Why interface is used?

1014


What is abstraction and encapsulation?

1012


What is polymorphism what are the different types of polymorphism?

1011


Why multiple inheritance is not allowed?

1152


Templates mean

2077


Who invented oop?

1125


Why is there no multiple inheritance?

999


What is object in oop with example?

1232


Can we create object of abstract class?

1087