Keyur Patel
Can we call static method from abstract class?
By Keyur Patel in .NET on Jul 09 2014
  • Munesh Sharma
    Jul, 2014 23

    yes

    • 1
  • Puneet Gupta
    Jul, 2014 23

    Yes, Static Method can be called from abstract method. Object of abstract class can't be created but to call static object is not required. So Static method can be called from abstract class.

    • 1
  • Kuldeep Patel
    Jul, 2014 22

    Yes, we can call static method from abstract class.abstractClassObject.StaticMethod()

    • 1
  • Keyur Patel
    Jul, 2014 9

    Yes, we can call static method from abstract class. Here is the example. public abstract class TestAbstract { public static string test() { return "Yes we can call static method from abstract class"; } } Calling part =========== class Program { static void Main(string[] args) { string test = TestAbstract.test(); } }

    • 1
  • Mukesh Kumar
    Sep, 2017 5

    Yes

    • 0
  • Munesh Sharma
    Jul, 2014 23

    yes

    • 0


Most Popular Job Functions


MOST LIKED QUESTIONS