What kind of linked-list generic do they mean?

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
 
T

Tony Johansson

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
 
A

Arne Vajhøj

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top