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

what is interface and when it is used?

1904


Explain about the keyword must inherit?

653


Name the tool which can convert visual basic old version to .net compatibility version?

610


What are the differences between c# and visual basic.net?

610


Name the two main parts of .net?

605






What are option strict and option explicit?

906


What is multiple form in vb?

536


Can we use Vb.Net and C# language simultaneously in one .Net application?

657


How a base class method is hidden?

699


What is stack used for in vb. Net?

611


What is the purpose of objects present in asp.net?

643


what is difference between web.config and machine.config and where it will be ?

569


What is branching logic control in VB.NET?

640


What is an assembly and its use?

626


Which properties are used to bind a DataGridView control?

658