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 public or shared assemblies ?
What is jit (just in time)?
What does int32 mean in c#?
What is expression c#?
What are the advantages of clr procedure over t-sql procedure?
How many dimensions can an array have?
Which is better javascript or c#?
Explain the types of Polymorphism.
Why do I get an error (cs1006) when trying to declare a method without specifying a return type?
What is the purpose of namespace?
What is the use of jit ? Jit (just - in - time) is a compiler which converts msil code to
What are immutable types in c#?
Why do we use generics in c#?
Is a decimal an integer?
What is AutoMapper in C#?