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

Explain the differences between public, protected, private
and internal.

Answer Posted / rahul_kumar007

public:-
--------- It means we can access the property of public;
directly from out side of the class.

private:-
---------- it means we can't access the property of
private;
directly from out side the class.
and we can't intilizing the member var during run time
we have to use constuctor.
proctected:-
If we wnat to inherit private data member only onces.
then we make them protcted

Is This Answer Correct ?    10 Yes 11 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

difference between object file and executable file

6665


When should a type cast be used?

984


What are the features of the c language?

1057


explain what is fifo?

1044


What is a pointer and how it is initialized?

1111


What is the difference between #include and #include 'file' ?

1018


What is .obj file in c?

1043


about c language

1980


What is c standard library?

1167


Write a program to check whether a number is prime or not using c?

1020


Is python a c language?

964


What does c mean in basketball?

956


What does void main return?

1089


Explain how do you use a pointer to a function?

1071


how to solve "unable to open stdio.h and conio.h header files in windows 7 by using Dos-box software

3279