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
What is difference between a type and class?
How to use the sreamReader class to read form a text file?
Can u list some style properties of List Box?
Can we create extension method for interface?
Is c# and c sharp same?
Why we use oops in c#?
Describe ado.net?
What is ado net in c#?
What is the process of Serialization?
What is generic delegates in c#?
What is .cshtml file?
What is integer c#?
Explain what are the steps for creating clr trigger?
What is data quality assurance?
What is the difference between selection and projection?