difference between keyword internal and protected?

Answer Posted / pawan

protected and internal can be accessed in the derived class
which can be in different namspaces.

Protected can not be accessed using object, it dosen't
matter whether it is in same or different namespace.

Only internal method will be accible using object

Is This Answer Correct ?    1 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are scriptable objects?

680


What is a console device?

649


What is property in c#?

688


Does c# have functions?

652


What is the purpose of abstract class in c#?

645






i want the csharp questions&answeres

1671


What do you mean by generic class in c#?

648


What is the difference while using directive vs using statement ?

693


What Is A Satellite Assembly?

729


Can you inherit multiple classes in c#?

679


Why dictionary is used in c#?

688


What is the use of main method in c#?

679


What is the difference between dynamic and var in c#?

651


What is default value of enum c#?

628


What is the main method in c#?

705