Which data structure should you recommend?

You are an enterprise application developer. You are creating an application that has a business object named Product. The application also includes a Windows form along with a ComboBox control. You plan to display the Name property of the Product object in the ComboBox control.
An
application workflow allows the user to add new Product objects. You need to recommend an appropriate data structure for the Product objects. You also need to ensure that when a new Product object is added, the data structure provides notifications to update the ComboBox control automatically. Which data structure should you recommend?

You are an enterprise application developer. You are creating an application that has a business object named Product. The application also includes a Windows form along with a ComboBox control. You plan to display the Name property of the Product object in the ComboBox control.
An
application workflow allows the user to add new Product objects. You need to recommend an appropriate data structure for the Product objects. You also need to ensure that when a new Product object is added, the data structure provides notifications to update the ComboBox control automatically. Which data structure should you recommend?

A.
ArrayList

B.
List(T)

C.
Collection(T)

D.
BindingList(T)



Leave a Reply 0

Your email address will not be published. Required fields are marked *