H
haroldsphsu
Hi,
I understand that I cannot create an instance of an interface, but why
is it ok to do the following? What is it creating?
foo = New System.ComponentModel.IEditableObject(10) {}
whereas the following will get a compiler error ('New' cannot be used
on interface):
foo = New System.ComponentModel.IEditableObject(10)
Thanks,
Harold
I understand that I cannot create an instance of an interface, but why
is it ok to do the following? What is it creating?
foo = New System.ComponentModel.IEditableObject(10) {}
whereas the following will get a compiler error ('New' cannot be used
on interface):
foo = New System.ComponentModel.IEditableObject(10)
Thanks,
Harold