What is the DIfference between Friend and Protected Friend?

Answer Posted / kuru

Protected --> Accessible ONLY by 1.Derived classes 2.Within
the same class

Friend --> Accessible ONLY by 1.Derived classes 2.Classes
in the same assembly 3.Within the same class

Protected Friend --> Accessible ONLY by 1.Derived classes
2.Classes in the same assembly 3.Within the same class


This is a very strange prob for which I've been looking for
an answer for a long time. As you can see above Friend and
Protected Friend are exactly same simply because 'Friend'
encompasses the accessibilities of both Protected and
Protected Friend. The question here is why did Microsoft
publish a 'Protected Friend' keyword when it is EXACTLY
same as Friend.

Is This Answer Correct ?    11 Yes 20 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

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

507


Explain the difference between namespace and assembly?

508


Sir, what code to store data from vb net sql server 2008 to 2005 and at the same time in order to validate the data entered is not the same, but there have been contacts in the module. Examples such as the log table that I created, the user name as the primary key.

1742


What is the class that allows an element to be accessed using unique key?

537


I Am Developing A project where I can send Message from One Computer to Another Computer With The Help Of LAN.Already I Have developed..It is working Fine With The Details Of ..TO,FROM,REF No,DATE,BODY...Now I Want To Add Attachments part in the same projects...How Can I Send Attachment File & How To Send It..I Am Working in VB.Net 2005 With out Any database. Can Any One Help me ??How To Write Code??Plz Send me a copy to my Mail also...I Dont Need Any Software Available in The Internet...Plz refer me The Code in VB.Net maloy.adhikari@in.com

2206






What is the differences between dataset.clone and dataset.copy?

631


What is option strict?

510


Name some of the keywords used in vb.net?

595


What is the difference between value and reference types?

538


Explain some of the exclusive features which are present in vb?

511


How would you implement inheritance using vb.net?

503


What is writeline in vb.net?

520


Explain about visual basic?

543


thak you Mr Govind for replying to my question. My next question is that how to retrieve image stored in an SQL server table and assign it to any image control or picture control using VB.net

1699


What keyword is used to accept a variable number of parameter in a method?

566