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

What are the various open source tool available for VB.NET?

0 Answers  


Define cls?

0 Answers  


What languages does the .net framework support?

0 Answers  


Why do we use byref keyword in vb.net?

0 Answers  


What is jagged array in vb.net?

0 Answers  


Explain option strict?

0 Answers  


What is a static variable?

5 Answers  


Name a feature which is common to all .net languages?

0 Answers  


What are the parts of the visual basic control?

0 Answers  


What is multiple form in vb?

0 Answers  


What are the different variables in vb.net?

0 Answers  


Explain the difference between dispose and finalize()?

0 Answers  


Categories