0
DLL import has some access specifier or not
Hi As we know , one class can be inherited and private , protected as well as public members of base class behave differently in derived class based on how inherited ( private , public or protected inheritance) Having said that , let's assume a class of DLL. It is having all proper access specifier. When we re use DLL, does always private , public and protected member of DLL class remain as it is or not ? I mean is there anything to do with access specifier when we reuse dll code ?
1 ответ
+ 1
As u said dll is generally used for code Re-Use. we can plug dll in some exe or different dll. What u have written in dll remain same. If u declare some method private in dll. That will remain private when u used in other dlls Or exe. Access modifiers don't change while plugin dll into different use cases