You are an enterprise application developer. You are performing a peer code review for an entry- level developer. The developer is implementing server-side business objects. The business objects must be accessed and activated by using .NET Framework remoting. In addition, the business objects must meet the following requirements:
Implement an interface for client-side access.
Inherit from a base business object class.
The developer writes the following code segment.
public class UserObject : BaseBizObject, MarshalByRefObject, IUserObject { }
When the developer attempts to compile the code, an error message is received. You need to review the code and recommend a solution. What should you recommend?
A.
The class must derive from the MarshalByRefObject class. The UserObject class can access methods in the BaseBizObject class by creating an instance of the BaseBizObject class.
B.
The class must derive from the BaseBizObject class. The BaseBizObject class must derive from the MarshalByRefObject class.
C.
Change the approach so that the client computer accesses a wrapper class that derives from the MarshalByRefObject class.
D.
The class must derive from the MarshalByValue class instead of the MarshalByRefObject class.