Number of questions 1,751
Number of tests completed 246,984
Number of questions answered 3,697,077
Number of registered users 18,985
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: 11730
Incorrectly answered: 2708
Terms of Use
contact@quiznetonline.com Ver. 2.0.6364.35217