Private inheritance in C#?
问题 I'm new to C# and wondered if there is something like private inheritance in C# (like in C++) ? My problem is as follows: I want to implement a queue (name it SpecialQueue) with the following changes: The queue has a maximum number of items that can be stored in it. If the queue is full and you insert a new item, one item will be automatically poped out of the queue (the first item in the queue) and the new item will be inserted to the end of the queue. Some methods (such as peek()) provided