2
Reply

Can we call a method of a class or ABSTRACT class without creating instance in client side.

Adhi Venkatesh

Adhi Venkatesh

6y
2.3k
1
Reply

    By using Static method ..

    public class myclass{public static void my_message(){Console.WriteLine("Welcome CLASS");}}public abstract class myABSTRACT{public static void my_message(){Console.WriteLine("Welcome ABSTRACT");}}static void Main(string[] args){ myABSTRACT.my_message();myclass.my_message(); }