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
What is the difference between value and reference types?
How do you define a read only property in a class module?
What is code security?
Tell me how many .net languages can a single .net dll contain?
Explain managed code?
Explain how can we remove handlers at run time?
Write a program to find all text files in a logical drive and return the count of the number of files?
Which control is an example of an object in vb net?
How do you call a stored procedure in Visual Basic?
What is the exact defination of object?
Write the role of new keyword?
Described strong typing
What does assert() method do In VB.NET
Which is the base class for all the classes in .net framework?
What is the Advantage of vb.net over vb