Click here to Skip to main content
15,888,301 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
add a new public class named grocerybasket
-derive from the generic List class
-ensure that only groceryItem objects are stored as items
Posted
Comments
Sergey Alexandrovich Kryukov 10-Dec-15 0:37am    
In what language? If the class List is generic, why deriving anything? Overall, the question makes little to no sense.
—SA

1 solution

This looks like a standard homework question; see https://www.google.com/search?q=c%23%20classes%20tutorial[^].
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900