PrepAway - Latest Free Exam Questions & Answers

What should you do?

You create a class named Billings that stores billing information. Billings connects to a local Microsoft SQL Server database to store the billing information. Billings must run under a local user account to connect to the database.

The Billings class includes the following code:

public class Billings {
public void Submit(string name, DateTime date,
float hours) {
// Method implementation goes here.
}
// Private implementation goes here.
}

You want client applications on other computers to be able to use the Billings class through .NET Remoting.

What should you do?

PrepAway - Latest Free Exam Questions & Answers

A.
Derive the Billings class from MarshalByRefObject.

B.
Implement the ISerializable interface in the Billings class.

C.
Implement the IRemoteDispatch interface in the Billings class.

D.
To the Billings class, add the following attribute:
[Serializable]


Leave a Reply