Can we have a non static member function in a base class to
be override in derived with static modifier?
Answer Posted / siva
No We cannot Create. It shows an error.
A static member 'Analysis.Class3.ss1()' cannot be marked as
override, virtual, or abstract
class Class2
{
public Class2()
{
}
public virtual void ss1()
{
System.Windows.Forms.MessageBox.Show("Base :
ss1");
}
}
class Class3:Class2
{
public Class3()
{
}
public static override void ss1()
{
System.Windows.Forms.MessageBox.Show
("Derived:s1");
}
}
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
how to implement a web service in .net
What is remote data?
What is application c#?
Is constructor a static method?
What is the difference between a variable and a literal?
What is func delegate in c#?
What is cts, clr?
What type is string in c#?
What are the basics of c#?
What is the benefit of interface in c#?
how to sort an array in c#
How many classes are there in classification?
Is c# difficult to learn?
Explain briefly the difference between value type and reference type?
Explain the difference between Metadata and Manifest