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
Can you please explain the difference between namespace and assembly?
What is different between web.config and machine.config and where it will be ?
What is a stream in vb.net?
Is vb.net dead?
How can we remove handlers at run time?
Which dll is used for microsoft .net run time?
What is early binding?
Which namespace are used for accessing the data?
What is deep copy?
What is branching logic control in VB.NET?
What are the different types of applications supported in .net (or) .net framework?
How vb implements the disconnected architecture as like vb.net?
What are the differences between server-side and client-side code?
What is stack used for in vb. Net?
Name the class which allows an element to be accessed using unique key?