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.

Answers were Sorted based on User's Feedback



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

Answer / avinash

public means we can access the code or data in public that
is visible to others.
protected means the code or data can be within the system
and,or it has no access to it.and it is not available.
private means it can be accessesed only by the person who
has the access or key to it.

Is This Answer Correct ?    1 Yes 0 No

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

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

More C Interview Questions

how can i sort numbers from ascending order and descending order using turbo c..

1 Answers  


Is c compiled or interpreted?

0 Answers  


Write a program that his output 1 12 123

0 Answers  


What are .h files and what should I put in them?

3 Answers  


What are register variables in c?

0 Answers  


all c language question

0 Answers   Wipro,


i=10,j=20 j=i,j?(i,j)?i:j:j print i,j

1 Answers   CSC,


What is pointer to pointer in c?

0 Answers  


What is the purpose of the preprocessor directive error?

0 Answers  


Write a program to print factorial of given number without using recursion?

0 Answers  


will u please send me the placement papers to my mail???????????????????

0 Answers  


4. main() { int c=- -2; printf("c=%d",c); }

1 Answers  


Categories