What is the DIfference between Friend and Protected Friend?
Answer Posted / benjamin marty
I guess the difference is this:
Friend can be accessed by
1. Code within the class
2. Code in derived classes within the same assembly
3. Other code in the same assembly
Protected can be accessed by
1. Code within the class
2. Code in derived classes within the same assemblies
3. Code in derived classes in other assemblies
Protected Friend can be accessed by
1. Code within the class
2. Code in derived classes within the same assembly
3. Other code in the same assembly
4. Code in derived classes in other assemblies
| Is This Answer Correct ? | 47 Yes | 9 No |
Post New Answer View All Answers
Can we use Vb.Net and C# language simultaneously in one .Net application?
Write a program that would find the nth term of a geometric progression, given the value of first term and common ratio. Any inbuilt function that the language provides for calculating exponent should not be used.
What is option strict?
What are the different variables in vb.net?
What are all the parts of .net framework?
How do you use two datareaders at the same time in a vb.net windows application ?
Explain about visual basic?
What is early binding?
source code for how to login a vb.net application ?
Explain the difference between int and int32?
What is misl code?
Explain convert.tostring and i.tostring method?
What is strong typing and weak typing?
What is internal keyword in .net framework?
Explain clr?