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 join in c#?
How to generate strong name key file or which command is used to generated strong name key file?
Is string nullable c#?
What is clr in c#?
What are the advantages of clr procedure over t-sql procedure?
What is the difference between icomparer and icomparable in c#?
What is the default value of boolean variable?
How does the clr work?
What is the default value of datetime in c#?
Is everything an object c#?
How do you sort a list in c#?
Why do we use interfaces in c#?
Explain Constructor and destructor?
What is the object class in c#?
what are implementation inheritance and interface inheritance?