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

Can you please explain the difference between namespace and assembly?

1038


What is different between web.config and machine.config and where it will be ?

1013


What is a stream in vb.net?

990


Is vb.net dead?

962


How can we remove handlers at run time?

1060


Which dll is used for microsoft .net run time?

980


What is early binding?

942


Which namespace are used for accessing the data?

1237


What is deep copy?

929


What is branching logic control in VB.NET?

975


What are the different types of applications supported in .net (or) .net framework?

935


How vb implements the disconnected architecture as like vb.net?

1009


What are the differences between server-side and client-side code?

1027


What is stack used for in vb. Net?

934


Name the class which allows an element to be accessed using unique key?

999