C
cmay
Can someone explain why you can implement ICloneable with a private
function and it works?
e.g.
Imports System
Public Class BusinessObject
Implements ICloneable
Private Function privateClone() As Object Implements
ICloneable.Clone
Dim MyClone As Object = makeClone()
Return MyClone
End Function
End Class
Does that fact that the Clone is public on ICloneable mean that the
"private" above is ignored when the object is being dealt with as type
ICloneable?
function and it works?
e.g.
Imports System
Public Class BusinessObject
Implements ICloneable
Private Function privateClone() As Object Implements
ICloneable.Clone
Dim MyClone As Object = makeClone()
Return MyClone
End Function
End Class
Does that fact that the Clone is public on ICloneable mean that the
"private" above is ignored when the object is being dealt with as type
ICloneable?