using System;
class nestedOut
{
public void Method1()
{
Console.WriteLine("I'm from Out Side");
}
public class nestedIn
{
public void Method1()
{
Console.WriteLine("I'm from In Side");
}
}
}
|
Class nestedOut
Public Sub Method1()
Console.WriteLine("I'm from Out Side")
End Sub
Public Class nestedIn
Public Sub Method1()
Console.WriteLine("I'm from In Side")
End Sub
End Class
End Class
|
class Program
{
static void Main()
{
nestedOut ob1 = new nestedOut();
ob1.Method1();
nestedOut.nestedIn ob2 = new nestedOut.nestedIn();
ob2.Method1();
Console.ReadLine();
}
}
|
Class Program
Private Shared Sub Main()
Dim ob1 As New nestedOut()
ob1.Method1()
Dim ob2 As New nestedOut.nestedIn()
ob2.Method1()
Console.ReadLine()
End Sub
End Class
|