2
Answers

Constructors in inheritance

Photo of Orlando Salcido

Orlando Salcido

18y
2.1k
1
I have class CReader that inherits StreamReader. When i try to assign Stream via [code] CReader(NetworkStream.GetStream()); [/code] I get 'No overload for CReader takes 1 arguments' This works if I use it in plain old StreamReader instead of CReader. I guess I need a custom constructor.... but how??

Answers (2)