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
Explain the difference between system.string and system.stringbuilder classes?
What is a static class?
What is the difference between readonly variable and constant variable?
What is a stream in vb.net?
difference between checkbox vs radiobutton??
What is the difference between a "jagged array" and multidimensional array" ?can anyone show me it practically ?
Define clr?
Allowed program to auto-correct the database when loading a presentation.
What is the difference between c# and vb.net?
Explain the observations between vb.net and vc#.net?
What is misl code?
What is a preprocessor directive in vb.net?
How do you retrieve the customized properties of a .net application from xml .config file?
Explain cls?
What are nested classes?