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

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain and brief about rapid application development tool?

590


what is intermediate language?

612


What is static member?

580


What is pre-jit?

544


Which classes a dll can contain?

535






Explain clr?

574


i am attending to US consulate i kept my projects on vb.net ,please help me what questions will be ask on vb.net in us consulate

1918


What is the difference between static or dynamic assemblies?

564


Which class allows an element to be accessed using unique key?

523


how to deploy vb.net with key and evaluation time? any one can help me?

1763


Can you please explain the difference between dataset and datareader?

555


Explain how to send xml file on server using http protocol?

501


Which dll is used for microsoft .net run time?

557


Explain convert.tostring and i.tostring method?

533


Can you please explain the difference between system.string and system.stringbuilder classes?

547