I am having two interfaceses. Two interfacess having same Sub method signature with method name. i am going to implement in another class? What is the result?
Public Interface Intef1
Sub ABC(ByVal id As Integer, ByVal location As Integer)
End Interface
Public Interface Intef2 Sub ABC(ByVal id As Integer, ByVal location As Integer) End Interface
I am going to implement in a class with these two intefacess what is the outpur?
Public Class IntefTest Implements Intef2, Intef1, Interf3 Public Sub ABC(ByVal id As Integer, ByVal location As Integer) Implements Intef1.UHID Dim s As String = "1"
End Sub Public Sub ABC(ByVal id As Integer, ByVal location As Integer) Implements Intef2.UHID Dim d As String = "2"
End SuB
---------------------------- IN ASPX PAGE-------------------- Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click Dim d As New IntefTest d.UHID(10, 10101) Label1.Text = "Intef1" 'ClientScript.RegisterStartupScript(Me.GetType, "Naga", "Javascript:Alert(Interface1)", True) d.UHID(20, 10102) Label1.Text = "Intef2" 'ClientScript.RegisterStartupScript(Me.GetType, "Naga", "Javascript:Alert(Interface2)", True)
End Sub
|