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 the DIfference between Friend and Protected Friend?

Answer Posted / kuru

Protected --> Accessible ONLY by 1.Derived classes 2.Within
the same class

Friend --> Accessible ONLY by 1.Derived classes 2.Classes
in the same assembly 3.Within the same class

Protected Friend --> Accessible ONLY by 1.Derived classes
2.Classes in the same assembly 3.Within the same class


This is a very strange prob for which I've been looking for
an answer for a long time. As you can see above Friend and
Protected Friend are exactly same simply because 'Friend'
encompasses the accessibilities of both Protected and
Protected Friend. The question here is why did Microsoft
publish a 'Protected Friend' keyword when it is EXACTLY
same as Friend.

Is This Answer Correct ?    11 Yes 20 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Define serialization in .net?

1073


What is a stream in vb.net?

921


What is the difference between Namespace and Assembly?

1047


Which is the base class for all the classes in .net framework?

943


described weak typing?

943


What is pre-jit?

963


Did vb6 support multi-threading ?

907


What is option strict?

954


Explain redim keyword?

957


Explain about Visual basic.NET culture?

952


Explain the difference between web.config and machine.config and where it will be ?

865


What is tracing?

1041


What is the difference between compiler and interpreter?

965


my project run very wel in my sytem yhen i am deploying my project on client machine ,after deployment i run my project then it show " can no find server name " what i do .

1971


Explain the difference between value and reference types?

834