41. Partial class : class is divide
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace partial_class.cs
{
partial class BCA
{
public void hi()
{
Console.WriteLine("HI...");
}
}
partial class BCA
{
public void hello()
{
Console.WriteLine("Hello...");
}
}
class Program
{
static void Main(string[] args)
{
BCA obj = new BCA();
obj.hi();
obj.hello();
Console.Read();
}
}
}
OUTPUT:
HI...
Hello...
Comments
Post a Comment