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
What is a preprocessor directive in vb.net?
What is datatype conversion?
What is the difference between Namespace and Assembly?
What is a static class?
What is public assembly?
What is the use of errorprovider control?
How do you retrieve the customized properties of a .net application from xml .config file?
What are nested classes?
Write a program to find all text files in a logical drive and return the count of the number of files?
Explain the advantages of vb.net?
What is break mode? What are the options to step through code?
How can we remove handlers at run time?
What is the size of .net object?
Which control is an example of an object in vb net?
Using VB, how can you change the Mouse Pointer?