What is the DIfference between Friend and Protected Friend?
Answer Posted / rajeev pradhan
Protected variable will be accessed in inherited class, but
instance variable of class cant access protected variable.
While friend variable will be accessed in inherited class
as well as instance variable of class across the project.
Where we need both functionality we are using protected
friend scope.
Is This Answer Correct ? | 25 Yes | 12 No |
Post New Answer View All Answers
Did vb6 support multi-threading ?
Tell us how many languages are supported by .net?
Explain the difference between c# and vb.net?
Explain how can we remove handlers at run time?
Name the two main parts of .net?
Explain nested classes?
Described strong typing
How do you define a read only property in a class module?
described weak typing?
What is static member?
Can you please explain the difference between vb and vb.net?
Compare c# and visual basic.net?
Explain strong name in .net assembly?
Why do you need Lock in Visual Basic?
Explain how the .net framework performs automatic memory management.