Can you declare the override method static while the
original method is non-static?

Answer Posted / umesh

No, you can?t, the signature of the virtual method must
remain the same, only the keyword virtual is changed to
keyword override.

Is This Answer Correct ?    6 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a property in c#?

644


How does split work in c#?

651


Do loops in c#?

653


What is .dbml file?

662


What are data types examples?

662






How to block a class from being inherited further?

655


Explain the use of virtual, sealed, override, and abstract method?

639


What is a console file?

666


Where static variables are stored?

642


What does || mean in programming?

648


Okay, so an int is a value type, and a class is a reference type. How can int be derived from object?

731


What is int32?

668


Can we instantiate abstract class in c#?

634


How to handle exceptions that are raised in a component?

782


Give some examples for built in datatypes in c#?

707