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
Explain an assembly?
What is option strict?
Explain how can we remove handlers at run time?
What is the use of assembly?
Explain the difference between datatable and dataset?
What are the features of c# which are not present in vb.net?
Explain the difference between system.string and system.stringbuilder classes?
How to store images in sql server database through vb.net?
How to retrieve images in sql server database through vb.net?
What is early binding?
How can I extract the formated word(bold,italic,underline,font,color etc) from the msword file.?
How to send xml file on server using http protocol?