Adhi Venkatesh
Can we call a method of a class or ABSTRACT class without creating instance in client side.
By Adhi Venkatesh in .NET on Mar 17 2018
  • Madan Rout
    Oct, 2018 27

    By using Static method ..

    • 0
  • Adhi Venkatesh
    Mar, 2018 17

    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(); }

    • 0


Most Popular Job Functions


MOST LIKED QUESTIONS