What is the DIfference between Friend and Protected Friend?

Answer Posted / vineeta agarwal

Friends can be accessed by all classes within assembely but
not from outside the assembely.

Protected variables can be used within the class as well as
the classes that inherites this class.

The Protected Friend can be accessed by Members of the
Assembely (Friend) or the inheriting Assembely class
(Protected).

So Friend is not same as Protected Friend

Is This Answer Correct ?    22 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain cls?

587


Define serialization in .net?

628


How to view an assembly?

588


Explain the differences between vb.net and c#, related to oops concepts?

513


What is portable executable?

580






Can you please explain the difference between thread and process?

519


What is a stream in vb.net?

520


Which dll is used for microsoft .net run time?

547


What is option strict?

512


Explain global assembly cache (gac)?

721


What is the difference between system.applicationexception class and system.systemexception?

676


What is a literal control?

576


What are the different types of applications supported in .net (or) .net framework?

509


Explain the difference between value and reference types?

450


source code for how to login a vb.net application ?

590