internal class Program
{
private static void Main(string[] args)
{
BC a = new BC();
a.Method();
DC b = new DC();
b.Method();
BC c = new DC();
c.Method();
Console.ReadKey();
}
}
|
Friend Class Program
Private Shared Sub Main(args As String())
Dim a As New BC()
a.Method()
Dim b As New DC()
b.Method()
Dim c As BC = New DC()
c.Method()
Console.ReadKey()
End Sub
End Class
|