Number of questions 1,751
Number of tests completed 252,582
Number of questions answered 3,766,864
Number of registered users 19,177
Sign In | Register
Skip Navigation Links
Question: What does the keyword “virtual” declare for a method or property?
Answer1: The method or property can have a duplicate name within the same assembly
Answer2: The method or property doesn't exist exist in the context of the object at design time
Answer3: The method or property can be overridden
Answer4: The method cannot be overloaded
Answer5: The method is accessible from within the class in which it is declared
Answer: The method or property can be overridden

Explaination: The virtual keyword is used to modify a method, property, indexer or event declaration, and allow it to be overridden in a derived class. For example, this method can be overridden by any class that inherits it: public virtual double Area() { return x * y; }
Link: External Explaination

Correctly answered: 12652
Incorrectly answered: 3034
Terms of Use Ver. 2.0.6783.38332