What are the access-specifiers available in c#?
Answer Posted / faiyazul islam
public - allow to access member functions and member
variable of a class from other class that can be inside or
outside of namespace collection.
private - only allow to access member functions and member
variable of a class within the same class.
protected- allow to access member functions and member
variable of a class from within same class and child classes
that can be inside or outside the namespace collection.
internal - allow to access member functions and member
variable of a class from within same class and class within
the inside namespace collection.
internal protected - allow to access member functions and
member variable of a class from within same class and and
child class within the inside namespace.
Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is serialization in c#?
What is dbml file in c#?
How can it prevents DLL Hell assembly versioning in .NET?
What is the concept of strong names?
Are string objects mutable or immutable?
Can private virtual methods be overridden in c#.net?
Can we override interface method?
What do you understand by an Implicit Variable?
what is object-oriented programming (oop) language?
What is dynamic in c#?
Can you use foreach iteration on arrays in c#?
If you define a user defined data type by using the class keyword, is it a value type or reference type?
What is the difference between writeline and write in c#?
What is the difference between abstract and abstraction?
Explain the accessibility modifier protected internal?