Explain the Scope of
public/private/friend/protected/protected friend.
Answer Posted / 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 View All Answers
What does m mean in decimal c#?
How to get the sum of last 3 items in a list using lambda expressions?
What is the difference between “out” and “ref” parameters in c#?
What is session variable in c#?
if a base class has a number of overloaded constructors, and an inheriting class has a number of overloaded constructors; can you enforce a call from an inherited constructor to a specific base constructor?
Why we use get and set property in c#?
What is a derived class in c#?
Which class comes after the SortedList class?
What is a Assembly?
Which constructor is called first in c#?
How objects are stored in memory?
Is c# a technology?
What are interfaces in c#?
Explain the top reason to use c# language?
Why do we need to override in c#?