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

Explain manifest?

571


What is the difference between .dll extension and .exe extension files?

687


What is redim keyword?

653


What are the differences between c# and visual basic.net?

610


Explain the difference between vb 6 and vb.net?

617






Described strong typing

655


What do you mean by serialization and deserialization?

617


What is the significance of delegates. Where should they be used? What are the situations where we require them?

615


Is vb.net dead?

611


What is enumerator?

644


What is the difference between a "jagged array" and multidimensional array" ?can anyone show me it practically ?

628


What is a stream in vb.net?

625


Explain the observations between vb.net and vc#.net?

600


Explain the difference between .dll extension and .exe extension files?

612


What is an arraylist?

680