@Kaleem, this is the way to do this
class A
{
public void A1()
{
Console.WriteLine("I am from Class A");
}
}
class B
{
public static void B1()
{
Console.WriteLine("I am from Class B");
}
}
static class Program
{
static void Main(string[] args)
{
// I call Class A object then call his method..
A a = new A();
a.A1();
// Call B1 Method without creating class B object ???????
B.B1();
}
}
Inheritance
class A : B
{
public void A1()
{
Console.WriteLine("I am from Class A");
}
}
class B
{
public static void B1()
{
Console.WriteLine("I am from Class B");
}
}
static class Program
{
void Main(string[] args)
{
// I call Class A object then call his method..
A a = new A();
a.A1();
// Call B1 Method without creating class B object ???????
B.B1();
}
}