Question:You have recently created a serializable class named Vehicle.
The class is shown below:
<Serializable> _
Public Class Vehicle
Public VIN As String
Public Make As String
Private Model As String
Private Year As Integer
Private Owner As String
End Class
Certkiller .com does not want the Owner field to be persisted when a Vehicle object is serialized,
for
security reasons.
You need to ensure that this objective is fulfilled.
What should you do? 

A Apply the OptionalField attribute to the Owner field. 

B Apply the NonSerialized attribute to the Owner field. 

C Have the Vehicle class implement the IFormatter interface for custom serialization. 

D Do nothing because, when using binary serialization, Private fields are never persisted. 

+ Answer
+ Report
Total Preview: 820

Copyright © 2024. Powered by Intellect Software Ltd