Compiler errors - Example on pg. 347-349
Hello everyone, and Happy New Year .
I tried out the example Named Ch12Ex03 from Pages 347-349, dealing with
using Generic Delegates, and i got 2 compiling errors :
Inconsistent accessibility: base class 'System.Collections.Generic.List<Ch12Ex03.Vector>' is less accessible than class 'Ch12Ex03.Vectors'
for the line : public class Vectors : List<Vector>
and ...
Inconsistent accessibility: parameter type 'System.Collections.Generic.IEnumerable<Ch12Ex03.V ector>' is less accessible than method 'Ch12Ex03.Vectors.Vectors(System.Collections.Gener ic.IEnumerable<Ch12Ex03.Vector>)'
for the line : public Vectors(IEnumerable<Vector> initialItems)
Please help me figure out what is wrong. Thanks.
|