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 main use of a namespace?

0 Answers  


What is the difference between convert.tostring and i.tostring method?

0 Answers  


What is the advantages of VB.NET?

0 Answers   NA,


what is common type system?

0 Answers  


How to Insert a TextBox value in to Sql database using VB.Net coding?

5 Answers  






What is the difference between Abstract Classes and Interfaces? Give the answer as a table format....

5 Answers  


Define naming convention?

0 Answers  


What are Major Feature of VB.NET Over C#.NET

9 Answers   Wipro,


How to achieve Polymorphism in VB.Net?

0 Answers  


i have two class that contain's two methods as same name in derived class i have to call these two methods what will happen at run time ?

0 Answers   IBM,


What is private assembly?

0 Answers  


What is difference between a panel and GroupBox ?

3 Answers   GHK,


Categories