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
What is econo-jit?
What are the shadow variables?
What are the advantages of an assembly?
What is the difference between convert.tostring and i.tostring method?
What is the difference between readonly variable and constant variable?
Explain the difference between c# and vb.net?
What do you mean by Redim in VB.NET?
What is the diff between vb mdi form and .net mdi form?
What are the shared variables?
What is the difference between convert.tostring and .tostring() method?
Explain jit?
what is the advantage of option strict on?
What is portable executable?
Explain about garbage collection?
What is the difference between value and reference types?