difference between keyword internal and protected?

Answer Posted / ghouse basha s

These are access specifiers,
Internal means methods and properties will be accessible to
Classes in the Assembly
Protected means methods and properties will be accessible to
classes and in the derived assembly

Is This Answer Correct ?    7 Yes 21 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is wrong with the sample program below?

534


What is the use of the dispose method in C# ?

542


What floating point types is supported in C#?

592


What are the 3 elements of delegation?

489


The int maps to which C# keyword in .NET type?

659






What is a thread? What is multithreading?

503


How to move to a state-related codebase?

893


What do you understand by 'access specifiers' in C#?

520


Explain the difference between “as” and “is” operators used in c#?

498


What do you mean by expression tree?

446


What does int32 mean?

475


What's the implicit name of the parameter that gets passed into the set method/property of a class?

588


Explain partial class in c#?

493


Is string a primitive data type in c#?

502


What are bitwise logical operators?

479