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 option strict?
Explain an assembly and its use?
Explain about the performance of visual basic?
What is the significance of delegates?
What are the objects in asp.net?
Explain code security?
i have two class that contain's two methods as same name in derived class i have to call these two methods what will happen at run time ?
What is portable executable?
Explain the difference between system.string and system.stringbuilder classes?
What are the shared variables?
What is code access security?
What are all the differences between dispose and finalize()?
What is internal keyword in .net framework?
Explain option explicit?
What is the difference between convert.tostring and .tostring() method?