Interviews6 answers
Can we call static method from abstract class?
6 Answers
Yes
Mukesh KumarPosted Sep 5, 2017, 12:02 AM EDT
yes
Munesh SharmaPosted Jul 23, 2014, 2:01 AM EDT
yes
Munesh SharmaPosted Jul 23, 2014, 2:01 AM EDT
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.
Puneet GuptaPosted Jul 22, 2014, 8:07 PM EDT
Yes, we can call static method from abstract class.
abstractClassObject.StaticMethod()
Kuldeep PatelPosted Jul 22, 2014, 4:38 AM EDT
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();
}
}
Keyur PatelPosted Jul 9, 2014, 5:00 AM EDT


