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


Please Help Members By Posting Answers For Below Questions

What is break mode? What are the options to step through code?

547


Using VB, how can you change the Mouse Pointer?

631


What is econo-jit?

607


When do you use virutal keyword?

588


What is the difference between c# and vb.net?

555






Described strong typing

565


What would you do to remove microsoft visual basic name space?

504


What are the two main parts of .net?

559


Name and explain some of the exclusive features which are present in vb?

545


Explain about the ruby interface generator?

542


Explain about globalization?

490


How to view an assembly?

588


What is the difference between a "jagged array" and multidimensional array" ?can anyone show me it practically ?

544


Name the two main parts of .net?

518


What are the technology areas that microsoft.net contains?

540