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 is garbage collector and where should you use in .NET?

520


What’s thread.sleep() in threading ?

512


What is signature c#?

496


What are verbatim strings in c#?

500


What is difference between code access and role based security?

511






What is difference between float and decimal?

509


HOW to Develope the CRUD(create,read,update,delete) FORM IN WINDOWS form by using c# only

531


what is collections in .net? why we use?

1693


What does firstordefault mean in c#?

480


What is the task perform by clr?

580


Can we customize the serialization process?

529


Explain the advantage of using system.text.stringbuilder over system.string?

473


What is default boolean value in c#?

490


What is the object class in c#?

492


What is difference between === and ==?

469