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
Which is the tool which can convert visual basic old version to .net compatibility version?
Explain an assembly?
What is difference between metadata and manifest?
When do you use virutal keyword?
what is the advantage of option strict on?
Explain about Visual basic.NET culture?
Explain strong name in .net assembly?
What is the difference between vb 6 and vb.net?
What is trace in vb.net?
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.
How to retrieve images in sql server database through vb.net?
Explain public assembly?
Tell me how many .net languages can a single .net dll contain?
What is a static variable?
What is late binding and early binding?