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 how the .net framework performs automatic memory management.

0 Answers  


What is the differnce between managed code and unmanaged code?

0 Answers  


What is the advantage of using system.text.stringbuilder over system.string?

0 Answers  


hello dear friends my problem is that i want to save images that is pictures in SQL server using vb.net can any body help me to do so please

1 Answers  


What is late binding and early binding?

0 Answers  






What is the main use of a namespace?

0 Answers  


Where is the Version Information Stored on a assembly ? Write the Namespace to load assemblies at runtime Can you allow a class to be inherited but prevent the method from being overridden ? What happens in memory when you box and unbox a value type ? Write a progtam to convert decimal to byte without using library function.

2 Answers   HCL,


What is the relation between Garbage collector and finalize and destructor?

2 Answers   Kanbay,


how to save items in gridview and the form name is vendor rating?

1 Answers  


What is non_deterministic finalization?

0 Answers  


What is the main purpose of garbage collector?

0 Answers  


visual basic 6.0 hava print statement for printing on form.what is the alternative for this in vb.net?

5 Answers  


Categories