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
Define serialization in .net?
What is a stream in vb.net?
What is the difference between Namespace and Assembly?
Which is the base class for all the classes in .net framework?
described weak typing?
What is pre-jit?
Did vb6 support multi-threading ?
What is option strict?
Explain redim keyword?
Explain about Visual basic.NET culture?
Explain the difference between web.config and machine.config and where it will be ?
What is tracing?
What is the difference between compiler and interpreter?
my project run very wel in my sytem yhen i am deploying my project on client machine ,after deployment i run my project then it show " can no find server name " what i do .
Explain the difference between value and reference types?