Answers

Question and Answer:

  Home  MCSD.NET - 70-316 Exam

⟩ Suppose You develop a Windows-based application by using Visual Studio .NET. The application includesa form named XYZForm and a class named Contact. XYZForm includes a button namedcmdCreateContact. You must ensure that your application creates an instance of Contact when auser clicks this button. You want to write the most efficient code possible.Which code segment should you use?A. Contact contact = new Object();B. Contact contact = new Contact;C. Object contact = new Contact;D. Contact contact = new Object;

B. Contact contact = new Contact;

 194 views

More Questions for you: