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 are the difference between dispose(), close(), exit(), end()?
Explain the use of option explicit?
Explain the difference between system.string and system.stringbuilder classes?
What are the different types of Lock available in Visual Basic?
How many ways the function can return values?
What is a literal control?
What is pre-jit?
Which is the tool which can convert visual basic old version to .net compatibility version?
How to connect crystal report in vb.net ?
How a base class method is hidden?
What is difference between metadata and manifest?
What are the advantages of migrating to vb.net?
What is the source code for display the picture in button click event?
What is late binding and early binding?
What is visual basic.net culture?