What kind of linked-list generic do they mean?

  • Thread starter Thread starter Tony Johansson
  • Start date Start date
T

Tony Johansson

Hello!

What actually does this sentence mean?
Create a linked-list generic class that enables you to create a chain of
different objects types.

When I create a linked-list generic class for example with the string type.
I do the following.
List<string> myList = new List<string>();

So what can they mean when they say different objects types.

Does it sounds reasonable that they mean a linked-list of object like this
List<Object> myList = new List<Object>();

//Tony
 
Hello!

I just wonder what advantages does a LinkedList<T> have compared to List<T>
?

So is it possible to say in general when to use LinkedList<T>?

//Tony
 
Tony said:
What actually does this sentence mean?
Create a linked-list generic class that enables you to create a chain of
different objects types.

I think they want you to write your own LinkedList<> implementation.

Arne
 
Back
Top