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
Public Model As String
Public Year As String
End Class
You are planning to create a custom formatter class to control the formatting of Vehicle objects
when they
are serialized.
You need to ensure that is achieved with as little development effort as possible.
What should you do? - (VB.Net)
A Use the following code:
Public Class VehicleFormatter
Inherits Formatter
'Implementation omitted
End Class
B Use the following code:
Public Class VehicleFormatter
Implements IGenericFormatter
'Implementation omitted
End Class
C Use the following code:
Public Class VehicleFormatter
Implements IFormatConverter
'Implementation omitted
End Class
D Use the following code
Public Class VehicleFormatter
Implements IFormatter
'Implementation omitted
End Class