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
What’s the difference between private and shared assembly?
What do you mean by serialization and deserialization and it's use.
Explain the use of new keyword?
Write the role of new keyword?
What is the use of system.diagnostics.process class?
How vb implements the disconnected architecture as like vb.net?
Explain the difference between int and int32?
Which classes a dll can contain?
Which properties are used to bind a DataGridView control?
How many ways the function can return values?
How to execute VB.NET PROJECTS,VB6.0 PROJECTS AND write their test cases.Need Reply Urgently
difference between checkbox vs radiobutton??
What is the difference between system.applicationexception class and system.systemexception?
Which class allows an element to be accessed using unique key?
What are the different types of applications supported in .net (or) .net framework?