Thanks for your reply. If ClassB is derived from ClassA using protected, and then ClassC is derived from ClassB using protected THEN; functions of ClassA will be available in ClassC as well. However, this is not the case when we implement same scenario using private inheritence. Am I wrong somewhere?
This world is going to explode due to international politics, SOON.
My background is more C++ than C#, so I'll suggest you look beyond me. Google threw up a lot of good stuff on "C# composition vs inheritance", including Composition VS Inheritance[^] right here on CP.
It also seems that you may need to drag in interfaces, depending on your exact needs.
Software rusts. Simon Stephenson, ca 1994. So does this signature. me, 2012
As you have discovered, there is no real concept of private inheritance in C#. You can't hide the public properties and methods of a base class. The only real way that you could achieve this would be to have a member variable in your class, instead of using that type as a base class, and you'd just work with that.
*pre-emptive celebratory nipple tassle jiggle* - Sean Ewington