46.Nasted Namespace
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace nestednamepsaceexample
{
namespace FYBCA
{
namespace SYBCA
{
class SYBCA_Class
{
public static void hello()
{
Console.WriteLine("Hello");
Console.Read();
}
}
}
}
class Program
{
static void Main(string[] args)
{
FYBCA.SYBCA.SYBCA_Class obj = new FYBCA.SYBCA.SYBCA_Class();
FYBCA.SYBCA.SYBCA_Class.hello();
}
}
}
OUTPUT:
Hello
Comments
Post a Comment