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


Please Help Members By Posting Answers For Below Questions

What are the difference between dispose(), close(), exit(), end()?

509


Explain the use of option explicit?

590


Explain the difference between system.string and system.stringbuilder classes?

521


What are the different types of Lock available in Visual Basic?

629


How many ways the function can return values?

523






What is a literal control?

576


What is pre-jit?

537


Which is the tool which can convert visual basic old version to .net compatibility version?

526


How to connect crystal report in vb.net ?

570


How a base class method is hidden?

608


What is difference between metadata and manifest?

559


What are the advantages of migrating to vb.net?

563


What is the source code for display the picture in button click event?

700


What is late binding and early binding?

548


What is visual basic.net culture?

497