Explain the Scope of
public/private/friend/protected/protected friend.



Explain the Scope of public/private/friend/protected/protected friend...

Answer / jiten

public members r available all classs
private members r available only within class
protcted members r available drive classs
protected friend members r availble in drived classs and
all classs whitch r in same assambly
friend memebers r available for all classs witch in same
assambly

Is This Answer Correct ?    13 Yes 1 No

Post New Answer

More C Sharp Interview Questions

Why are strings in c# immutable?

0 Answers  


What is the use of command builder?

0 Answers  


How can you overload a method?

6 Answers  


Define c# i/o classes?

0 Answers  


How do you use nullable?

0 Answers  






What is the data type for bit in c#?

0 Answers  


Which is faster list or dictionary in c#?

0 Answers  


What are the different types of constructors in c#?

0 Answers  


Explain what is copy constructor?

0 Answers   BPL,


Can you declare the override method static while the original method is non-static?

3 Answers  


class Employee { stat9c Method1() static Method2(ref a) stat9c Method3(out x) } class Employee { stat9c Method1() static Method2(ref a) stat9c Method3(out x) } what will happen & why?

2 Answers  


What is the name of the implicit input parameter of a set accessor for any property?

1 Answers   TCS,


Categories