Which of the following method signatures will you use?

Posted by: Pdfprep Category: GSSP-.NET Tags: , ,

You work as a Windows Application Developer for ABC Inc. The company uses Visual Studio .NET 2008 as its application development platform. You create a Windows Forms application using .NET Framework 3.5. The application needs a thread that accepts an integer parameter.

You write the following code segment in the application:

Thread myThread = new Thread(new ParameterizedThreadStart(doWork));

myThread.Start(125);

You are required to declare the signature of the doWork method.

Which of the following method signatures will you use?
A . public void doWork(int nCount)
B . public void doWork(Object oCount)
C . public void doWork()
D . public void doWork(Delegate oCount)

Answer: B

Leave a Reply

Your email address will not be published.