solraccheffy
asked on
difference between internal and protected
i need to understand that difference between the two, to me the definitions I read, make them sound the same...I need to understand this better...
I know there are other...private and stuff...but I dont quite understand the difference between protected and internal.....some non technial explanations please.
I know there are other...private and stuff...but I dont quite understand the difference between protected and internal.....some non technial explanations please.
ASKER
when you say assembly you mean the same dll right? I want to make sure I dont confuse assembly with classes...because aren't there some that only are available in class...as opposed to the entire dll?
I get lost in terminology....just want to have it simplified...like...dervie d?
could you clarify a bit more?
also...isnt there another one protectedinternal?
how does that differ?
I get lost in terminology....just want to have it simplified...like...dervie
could you clarify a bit more?
also...isnt there another one protectedinternal?
how does that differ?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Protected is visible in all derived classes (so classes that inherit after the class where you have defined protected members. )
so if you build a library a put class A there using internal members and then try to derive class A in different project it will not work, however if you use them as a protected ones they will be visible in class derived from A.
Hope this helps