i learnt that private members are available in sub class in c# but we cant use these then what is the use of those private members n sub class and how can i access those private member in sub class please let me now i am not getting this point.
Share
You learned wrong. Private members are not accessible to subclasses. They are visible only inside the current class (ignoring reflection of course). Only public and protected members are accessible in subclasses. Here’s an article on MSDN which covers the different access modifiers.