PdfPrep.com

Which code should you add to the application?

DRAG DROP

You have an application that contains the following class definitions.

You need to ensure that the Customers class can be initialized by using the following code.

Which code should you add to the application? To answer, drag the appropriate values to the correct targets. Each value may be used once, more than once, or not at all. You may need to drag the split bar between panes or scroll to view content.

NOTE: Each correct selection is worth one point.

Answer: public static void Add(this Customers cs, Customer c) => cs.AddCustomer(c);

Exit mobile version