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

Which is the tool which can convert visual basic old version to .net compatibility version?

529


Explain an assembly?

571


What is difference between metadata and manifest?

565


When do you use virutal keyword?

588


what is the advantage of option strict on?

600






Explain about Visual basic.NET culture?

594


Explain strong name in .net assembly?

527


What is the difference between vb 6 and vb.net?

639


What is trace in vb.net?

587


Thank you for replying to my Question regarding Barcodes in VB.net. My next question is that how to use Barcode Fonts in VB.net I need a small code to Generate Barcodes in VB.net from a string of Values. This is the only problem i am left with in my project. Any body can help me please.

2037


How to retrieve images in sql server database through vb.net?

517


Explain public assembly?

548


Tell me how many .net languages can a single .net dll contain?

521


What is a static variable?

559


What is late binding and early binding?

550