What is the DIfference between Friend and Protected Friend?

Answer Posted / vineeta agarwal

Friends can be accessed by all classes within assembely but
not from outside the assembely.

Protected variables can be used within the class as well as
the classes that inherites this class.

The Protected Friend can be accessed by Members of the
Assembely (Friend) or the inheriting Assembely class
(Protected).

So Friend is not same as Protected Friend

Is This Answer Correct ?    22 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you script this scenario in QTP using VB? Verify XML attributes in XML message against XSD and data mapping of fields to Oracle tables? Verify data in XML to data in a defined table?

2576


What is the difference between a "jagged array" and multidimensional array" ?can anyone show me it practically ?

563


What is redim keyword and its use?

596


Which namespace are used for accessing the data?

655


What is the advantages of VB.NET?

614






Name the two main parts of .net?

536


source code for how to login a vb.net application ?

601


Name some different types of control?

538


what's ArrayList in .Net (VB.Net or C#).What's the advantageous using ArrayList.

578


How does vb.net achieve polymorphism?

551


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

618


What does assert() method do In VB.NET

544


Explain an assembly?

583


Which classes a dll can contain?

544


Explain jagged array in vb.net?

572