What is friend and protected-friend access specifier in
vb.net?



What is friend and protected-friend access specifier in vb.net?..

Answer / viramgama parth

Friend Variables declared as Friend can be accessed from the outside world but only from other
classes of the assembly, which are classes that make up the application. You cannot declare a Friend
variable inside the method declaration space and implementation.
· 
Protected Friend Variables declared as Protected Friend are afforded the same protection as
Friend access. The difference, however, is that you can also access these variables from derived
classes. You cannot declare a Protected Friend variable inside the method declaration space and
implementation.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More VB.NET Interview Questions

Explain the difference between value and reference types?

0 Answers  


What is intermediate language in .NET ?

20 Answers   Digital GlobalSoft,


how many server control present in .net

0 Answers  


1234 123 12 1 how to design above pic in vb.net?

2 Answers   ABC,


What is enumerator?

0 Answers  






What is the difference between value and reference types?

0 Answers  


What is the advantages of VB.NET?

0 Answers   NA,


Is vb net a scripting language?

0 Answers  


Explain how can we remove handlers at run time?

0 Answers  


So you know which dll is used for microsoft .net run time?

0 Answers  


Write the role of new keyword?

0 Answers  


What are all the differences between dispose and finalize()?

0 Answers  


Categories