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 technology areas that microsoft.net contains?

557


write a program to develop a graphic user interface application of marks book with students names and their names.the program should show the following options main menu,add student details,display student details,maximum mark and minimum mark.

1185


What are the two main parts of .net?

575


What is the feature anonymous type?

528


What do you mean by serialization?

541






What do you understand by vb.net?

617


Explain about delegate?

524


what is common language specification?

523


What is pre-jit?

545


What is the difference between import system.data.sqlclient and system.data.oledb?

515


Is vb net a scripting language?

557


What are the shadow variables?

597


What is the Advantage of vb.net over vb

570


What is tracing?

617


What are the different variables in vb.net?

526