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
Explain the components of common language runtime.
Explain the difference between .dll extension and .exe extension files?
Write the role of new keyword?
Explain some of the exclusive features which are present in vb?
So you know which dll is used for microsoft .net run time?
What is the significance of delegates. Where should they be used? What are the situations where we require them?
Explain the difference between namespace and assembly?
Explain about Visual basic.NET culture?
how to get dynamic control array position or its index position?
Explain the services provided by common language infrastructure.
Explain namespace?
Is vb.net a programming language?
what is the need for dynamic controls in vb.net? i would like to know for what purpose should we create the controls dynamically? please give the answer in simple words.
Write a program to find all text files in a logical drive and return the count of the number of files?
What is the difference between readonly variable and constant variable?