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 is the significance of delegates. Where should they be used?

0 Answers  


Can you please explain the difference between value and reference types?

0 Answers  


What is difference between inline and code behind?

0 Answers  


Name some of the features of C# which are not present in VB.NET?

0 Answers  


i had attended to infosys interview on 17th april 2010...on .net..3+ experience .. to my knowledge i did well in technical and they asked me to wait for next process ..so i waited for 15 min ..later one person came and said give 7-10 days time for intimation of next process do they keep technical and hr on different day ...or i loose the interview ..am confused yaar please any say na what accuatly would be happend

4 Answers   Infosys,






What is the Difference between CLR & CTS?

3 Answers  


hi dear ! thank u for replying to my question regarding adding third party software in vb.net .My next question is that i haven created Data base in SQL server 2000 for Library and has connected that with VB and VB.net separately but it only works on single computer and when i takes my software to another computer on same Network it does not work . Can any body help me what i do to solve. Regards!

1 Answers  


Explain strong name in .net assembly?

0 Answers  


What is portable executable?

0 Answers  


So you know which dll is used for microsoft .net run time?

0 Answers  


What is econo-jit?

0 Answers  


What is "Polymorphism" and what are Polymorphism in VB.Net?

2 Answers  


Categories